forked from Mirror/wren
Handle invalid string literals.
This commit is contained in:
2
test/string/incomplete_unicode_escape.wren
Normal file
2
test/string/incomplete_unicode_escape.wren
Normal file
@ -0,0 +1,2 @@
|
||||
// expect error line 2
|
||||
"\u00"
|
||||
2
test/string/incomplete_unicode_escape_at_eof.wren
Normal file
2
test/string/incomplete_unicode_escape_at_eof.wren
Normal file
@ -0,0 +1,2 @@
|
||||
// expect error line 2
|
||||
"\u004
|
||||
2
test/string/invalid_escape.wren
Normal file
2
test/string/invalid_escape.wren
Normal file
@ -0,0 +1,2 @@
|
||||
// expect error line 2
|
||||
"not a \m real escape"
|
||||
2
test/string/invalid_unicode_escape.wren
Normal file
2
test/string/invalid_unicode_escape.wren
Normal file
@ -0,0 +1,2 @@
|
||||
// expect error line 2
|
||||
"\u00no"
|
||||
2
test/string/unterminated.wren
Normal file
2
test/string/unterminated.wren
Normal file
@ -0,0 +1,2 @@
|
||||
// expect error line 2
|
||||
"this string has no close quote
|
||||
Reference in New Issue
Block a user