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
Alexander Medvednikov d4a0d6f73c all: byte => u8
2022-04-15 14:58:56 +03:00

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]
}