Skip to content

Commit 483dd63

Browse files
committed
Add map->record test
1 parent 920b6b3 commit 483dd63

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/sci/records_test.cljc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,3 +240,7 @@
240240

241241
(deftest satisfies-IRecord-test
242242
#?(:cljs (is (true? (sci/eval-string "(defrecord Foo []) (satisfies? IRecord (->Foo))")))))
243+
244+
(deftest map-constructor-nil-test
245+
(is (true? (sci/eval-string "(defrecord Foo [a]) (and (contains? (map->Foo {}) :a)
246+
(nil? (:a (map->Foo {}))))"))))

0 commit comments

Comments
 (0)