Fix tests for UTF-16 strings

This commit is contained in:
gingerBill
2025-08-02 13:01:58 +01:00
parent 5aec40e3e0
commit e049dde582
4 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -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)
}
}