Skip to content

Commit

Permalink
fixup! make closed a namespaced opt like the others
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenet committed Jan 25, 2024
1 parent 7c33bc8 commit 96f8974
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/exoscale/coax_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -380,13 +380,13 @@
(s/def ::test-closed-keys (s/keys :req [::bar ::foo]))
(is (= (sc/coerce ::test-closed-keys {::foo 1 ::bar 2 ::zzz 3})
{::foo 1 ::bar "2" ::zzz "3"}))
(is (= (sc/coerce ::test-closed-keys {::foo 1 ::bar 2 ::baz 3} {:closed true})
(is (= (sc/coerce ::test-closed-keys {::foo 1 ::bar 2 ::baz 3} {:exoscale.coax/closed true})
{::foo 1 ::bar "2"}))

(s/def ::test-closed-keys2 (s/keys :req-un [::bar ::foo]))
(is (= (sc/coerce ::test-closed-keys2 {:foo 1 :bar 2 :zzz 3})
{:foo 1 :bar "2" :zzz 3}))
(is (= (sc/coerce ::test-closed-keys2 {:foo 1 :bar 2 :baz 3} {:closed true})
(is (= (sc/coerce ::test-closed-keys2 {:foo 1 :bar 2 :baz 3} {:exoscale.coax/closed true})
{:foo 1 :bar "2"})))

(s/def ::tuple (s/tuple ::foo ::bar int?))
Expand Down

0 comments on commit 96f8974

Please sign in to comment.