aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/v/tests/strings_unicode_test.v
blob: 2333069e5727f162b6d8bb7fc947d10a0b2da43d (plain)
1
2
3
4
5
6
7
8
9
10
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]
}