1
0
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:
Swastik Baranwal
2020-09-19 21:39:18 +05:30
committed by GitHub
parent 4b0e7fc979
commit 1c886ad067
2 changed files with 6 additions and 2 deletions

View File

@ -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() {