1
1
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:
Joel Martin 2019-07-31 09:24:08 -05:00 committed by GitHub
commit a4ff3ec9a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"