mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
scanner: remove the restriction for \x00 in strings (#13493)
This commit is contained in:
@@ -980,3 +980,7 @@ fn test_string_f32() {
|
||||
assert '-123'.f32() - (-123) < f32_epsilon
|
||||
assert '-123.456'.f32() - (-123.456) <= f32_epsilon
|
||||
}
|
||||
|
||||
fn test_string_with_zero_byte_escape() {
|
||||
assert '\x00'.bytes() == [byte(0)]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user