From f0a30e0c2065da21bf8410c41d966549c0accb1d Mon Sep 17 00:00:00 2001 From: jem Date: Fri, 24 May 2019 13:17:30 +0200 Subject: [PATCH] fix data-test-test --- test/src/data_test_test.clj | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/src/data_test_test.clj b/test/src/data_test_test.clj index a88369b..4a95bb3 100644 --- a/test/src/data_test_test.clj +++ b/test/src/data_test_test.clj @@ -18,12 +18,13 @@ [clojure.test :refer :all] [clojure.java.io :as io] [schema.core :as s] + [data-test.file-loader :as fl] [data-test.runner :as runner] [data-test :as sut])) ; -------------------- explicit version ------------------ (deftest should-test-with-data-explicit-version - (let [testdata (runner/read-data (io/resource "data_test_test/should-test-with-data-explicit-version.edn")) + (let [testdata (fl/read-data (io/resource "data_test_test/should-test-with-data-explicit-version.edn")) {:keys [input expectation]} testdata] (is (= expectation input)))) @@ -37,9 +38,7 @@ (is (sut/test-with-data ::should-test-with-data-record-version))) ; ---------------------------- macro ----------------------------- -;(sut/defdatatest should-test-with-data-macro-version (is (= input expectation))) - -(sut/defdatatest2 should-test-with-data-macro-version (is (= input expectation))) +(sut/defdatatest should-test-with-data-macro-version (is (= input expectation))) (macroexpand-1 '(sut/defdatatest should-test-with-data-macro-version (is (= 1 1))))