mirror of
https://github.com/kanaka/mal.git
synced 2024-08-16 09:10:48 +03:00
Merge pull request #359 from bjh21/bjh21-unterminated-strings
New test for reading an unterminated string that nonetheless ends with a quotation mark
This commit is contained in:
commit
a4ff3ec9a6
@ -82,6 +82,10 @@ false
|
||||
;=>"abc\"def"
|
||||
""
|
||||
;=>""
|
||||
"\\"
|
||||
;=>"\\"
|
||||
"\\\\\\\\\\\\\\\\\\"
|
||||
;=>"\\\\\\\\\\\\\\\\\\"
|
||||
"&"
|
||||
;=>"&"
|
||||
"'"
|
||||
@ -140,6 +144,12 @@ false
|
||||
;;; These should throw some error with no return value
|
||||
"abc
|
||||
;/.*(EOF|end of input|unbalanced).*
|
||||
"
|
||||
;/.*(EOF|end of input|unbalanced).*
|
||||
"\"
|
||||
;/.*(EOF|end of input|unbalanced).*
|
||||
"\\\\\\\\\\\\\\\\\\\"
|
||||
;/.*(EOF|end of input|unbalanced).*
|
||||
(1 "abc
|
||||
;/.*(EOF|end of input|unbalanced).*
|
||||
(1 "abc"
|
||||
|
Loading…
Reference in New Issue
Block a user