From e991002ea72492b1b8fe3d499f4c19d8cf98d13f Mon Sep 17 00:00:00 2001 From: Ambrose Bonnaire-Sergeant Date: Thu, 24 Oct 2024 10:28:55 -0500 Subject: [PATCH] wip --- test/flanders/malli_test.clj | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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))))