diff --git a/test/flanders/malli_test.clj b/test/flanders/malli_test.clj index f395a94..f914e5c 100644 --- a/test/flanders/malli_test.clj +++ b/test/flanders/malli_test.clj @@ -225,3 +225,15 @@ (-> Example fm/->malli ms/transform)))) + +(deftest conditional-test + (is (m/validate + (fm/->malli (f/conditional + boolean? f/any-bool)) + false)) + ;;FIXME should add tests to schema + (is (not (m/validate + ;;TODO + (fm/->malli (f/conditional + (constantly false) f/any-bool)) + false))))