mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix tests for UTF-16 strings
This commit is contained in:
@@ -27,7 +27,8 @@ utf16_to_utf8_buf_test :: proc(t: ^testing.T) {
|
||||
buf := make([]u8, len(test.ustr))
|
||||
defer delete(buf)
|
||||
|
||||
res := win32.utf16_to_utf8_buf(buf[:], test.wstr[:len(test.ustr)])
|
||||
wstr := string16(test.wstr)
|
||||
res := win32.utf16_to_utf8_buf(buf[:], transmute([]u16)wstr)
|
||||
testing.expect_value(t, res, test.ustr)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user