refactor input spec

This commit is contained in:
jem 2019-05-29 19:12:51 +02:00
parent ce25f94fc3
commit 7097edcc77
7 changed files with 7 additions and 7 deletions

View file

@ -28,7 +28,7 @@
:test `(fn []
(doseq [data-spec# (loader/load-data-test-specs ~namespaced-test-key#)]
(let [~(symbol (first bindings)) (:input data-spec#)
~(symbol (second bindings)) (:expectation data-spec#)
~(symbol (second bindings)) (:expected data-spec#)
data-spec-file# (:data-spec-file data-spec#)
message# (new java.io.StringWriter)]
(binding [t/*testing-contexts*

View file

@ -23,7 +23,7 @@
;TODO: replace schema with spec
(def TestDataSpec
{:input s/Any
:expectation s/Any})
:expected s/Any})
(def RuntimeTestDataSpec
(merge

View file

@ -1,2 +1,2 @@
{:input 1
:expectation 1}
:expected 1}

View file

@ -1,2 +1,2 @@
{:input 1
:expectation 1}
:expected 1}

View file

@ -1,2 +1,2 @@
{:input 2
:expectation 2}
:expected 2}

View file

@ -1,2 +1,2 @@
{:input 1
:expectation 1}
:expected 1}

View file

@ -1,2 +1,2 @@
{:input 1
:expectation 1}
:expected 1}