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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user