1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

utf8: fix utf8_test (#7804)

This commit is contained in:
yuyi 2021-01-02 20:55:21 +08:00 committed by GitHub
parent c1e0e01f8f
commit 7f776bfd29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,9 +6,9 @@ fn test_utf8_char_len() {
}
fn test_utf8_wide_char() {
r := `🌎`
r := ``
val := r.str().str
unsafe {
assert '${val[0]:x}${val[1]:x}${val[2]:x}${val[3]:x}' == 'f09f8c8e'
assert '${val[0]:x}${val[1]:x}${val[2]:x}${val[3]:x}' == 'e29c940'
}
}