1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-11 13:55:55 +03:00

tests: Add test for unescaping "\\n" in step4

Several implementations fail when unescaping "\\n" in their reader
module because string-wide replacements of the two chars '\' and 'n' by
a newline char will replace the last two chars.
This commit is contained in:
Dov Murik 2017-09-25 20:24:48 +00:00 committed by Joel Martin
parent a9f6469163
commit 8e59b7151b

View File

@ -273,6 +273,9 @@ a
"abc\\def\\ghi"
;=>"abc\\def\\ghi"
"\\n"
;=>"\\n"
;; Testing pr-str
(pr-str)