utf8: fix utf8_test (#7804)
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