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:
parent
c1e0e01f8f
commit
7f776bfd29
@ -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'
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user