v/vlib/encoding/utf8/utf8_util_test.v

10 lines
217 B
V
Raw Normal View History

import encoding.utf8
2019-11-29 14:25:25 +01:00
fn test_utf8_util() {
src:="ăĂ ôÔ testo æ"
upper:=utf8.to_upper(src)
lower:=utf8.to_lower(src)
2019-11-29 14:25:25 +01:00
assert upper=="ĂĂ ÔÔ TESTO Æ"
assert lower=="ăă ôô testo æ"
}