mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
scanner: add check for !is_raw
for null \0
(#6427)
This commit is contained in:
@ -725,6 +725,10 @@ fn test_raw() {
|
||||
println(lines)
|
||||
assert lines.len == 1
|
||||
println('raw string: "$raw"')
|
||||
|
||||
raw2 := r'Hello V\0'
|
||||
assert raw2[7] == `\\`
|
||||
assert raw2[8] == `0`
|
||||
}
|
||||
|
||||
fn test_raw_with_quotes() {
|
||||
|
Reference in New Issue
Block a user