Skip to content

Commit

Permalink
Add map->record test
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Jan 13, 2025
1 parent 920b6b3 commit 483dd63
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/sci/records_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -240,3 +240,7 @@

(deftest satisfies-IRecord-test
#?(:cljs (is (true? (sci/eval-string "(defrecord Foo []) (satisfies? IRecord (->Foo))")))))

(deftest map-constructor-nil-test
(is (true? (sci/eval-string "(defrecord Foo [a]) (and (contains? (map->Foo {}) :a)
(nil? (:a (map->Foo {}))))"))))

0 comments on commit 483dd63

Please sign in to comment.