mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
@@ -40,9 +40,9 @@ fn test_str_invalid_escape() {
|
||||
}
|
||||
|
||||
fn test_str_invalid_must_be_escape() {
|
||||
for char in important_escapable_chars {
|
||||
for ch in important_escapable_chars {
|
||||
mut sc := Scanner{
|
||||
text: [u8(`"`), `t`, char, `"`]
|
||||
text: [u8(`"`), `t`, ch, `"`]
|
||||
}
|
||||
tok := sc.scan()
|
||||
assert tok.kind == .error
|
||||
|
||||
Reference in New Issue
Block a user