From 0d17edb42858052e23db6921a208d864077272ff Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Wed, 21 Aug 2019 20:50:48 +0100 Subject: [PATCH] step 6: Test reading strings containing bare newlines. The official regexps permit bare newlines in strings, and the mal implementation currently contains one. --- tests/step6_file.mal | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/step6_file.mal b/tests/step6_file.mal index 49a8fb6f..a5e8db8e 100644 --- a/tests/step6_file.mal +++ b/tests/step6_file.mal @@ -12,6 +12,9 @@ (read-string "(+ 2 3)") ;=>(+ 2 3) +(read-string "\"\n\"") +;=>"\n" + (read-string "7 ;; comment") ;=>7