mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vlib: add a new module builtin.wchar, to ease dealing with C APIs that accept wchar_t* (#18794)
This commit is contained in:
@@ -72,6 +72,7 @@ fn test_string_from_wide2() {
|
||||
|
||||
fn test_reverse_cyrillic_with_string_from_wide() {
|
||||
s := 'Проба'
|
||||
z := unsafe { string_from_wide(s.to_wide()) }
|
||||
ws := s.to_wide()
|
||||
z := unsafe { string_from_wide(ws) }
|
||||
assert z == s
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user