v2 / vlib / v / tests / builtin_strings_and_interpolation / strings_unicode_test.v
10 lines · 9 sloc · 197 bytes · 6488041a749df9762348d019c4223908c476f2e2
Raw
1fn test_raw_string() {
2 assert r'\n\u00c0' == '\\n\\u00c0'
3}
4
5fn test_escape() {
6 assert '\x20' == ' '
7 assert '\u0020' == ' '
8 assert '\u00c4' == 'Ä'
9 assert '\r\n'.bytes() == [u8(0x0d), 0x0a]
10}
11