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:
parent
a9f6469163
commit
8e59b7151b
@ -273,6 +273,9 @@ a
|
||||
"abc\\def\\ghi"
|
||||
;=>"abc\\def\\ghi"
|
||||
|
||||
"\\n"
|
||||
;=>"\\n"
|
||||
|
||||
;; Testing pr-str
|
||||
|
||||
(pr-str)
|
||||
|
Loading…
Reference in New Issue
Block a user