utf8: fix utf8_test (#7804)

pull/7811/head
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
1 changed files with 2 additions and 2 deletions

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'
}
}