1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

scanner/parser: change error msgs for \0 and \x00 and add error for rbyte and cbyte (#6436)

This commit is contained in:
Swastik Baranwal
2020-09-21 20:04:24 +05:30
committed by GitHub
parent f159163856
commit 077b597bd8
5 changed files with 15 additions and 4 deletions

View File

@@ -729,6 +729,12 @@ fn test_raw() {
raw2 := r'Hello V\0'
assert raw2[7] == `\\`
assert raw2[8] == `0`
raw3 := r'Hello V\x00'
assert raw3[7] == `\\`
assert raw3[8] == `x`
assert raw3[9] == `0`
assert raw3[10] == `0`
}
fn test_raw_with_quotes() {