1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Files
v/vlib/v/tests/strings_unicode_test.v
2021-03-14 12:09:17 +02:00

11 lines
199 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() == [byte(0x0d), 0x0a]
}