Skip to content

Commit 3a315e0

Browse files
committed
singleton? tests with nil values
1 parent 05a3a0b commit 3a315e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/recursion_test.clj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
:points 1}
1919
(singleton? [1]) => true
2020
(singleton? #{2}) => true
21+
(singleton? [nil]) => true
22+
(singleton? [1 nil]) => false
2123
(singleton? []) => false
2224
(singleton? [1 2 3]) => false)
2325

0 commit comments

Comments
 (0)