mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
6 lines
107 B
V
6 lines
107 B
V
|
fn test_utf8_char_len() {
|
||
|
assert utf8_char_len(`a`) == 1
|
||
|
s := 'п'
|
||
|
assert utf8_char_len(s[0]) == 2
|
||
|
}
|