Skip to content

Commit 89b940a

Browse files
authored
Merge pull request #505 from bjh21/bjh21-test-readatom
Step 6: Test read-string of a single atom at the end of input
2 parents cb7fc07 + d98d5c3 commit 89b940a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

impls/tests/step6_file.mal

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
(read-string "(1 2 (3 4) nil)")
1010
;=>(1 2 (3 4) nil)
1111

12+
(= nil (read-string "nil"))
13+
;=>true
14+
1215
(read-string "(+ 2 3)")
1316
;=>(+ 2 3)
1417

0 commit comments

Comments
 (0)