mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
11 lines
197 B
V
11 lines
197 B
V
fn test_raw_string() {
|
|
assert r'\n\u00c0' == '\\n\\u00c0'
|
|
}
|
|
|
|
fn test_escape() {
|
|
assert '\x20' == ' '
|
|
assert '\u0020' == ' '
|
|
assert '\u00c4' == 'Ä'
|
|
assert '\r\n'.bytes() == [u8(0x0d), 0x0a]
|
|
}
|