diff options
Diffstat (limited to 'tests/custom/04_bugs')
-rw-r--r-- | tests/custom/04_bugs/31_vallist_8bit_shortstrings | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/custom/04_bugs/31_vallist_8bit_shortstrings b/tests/custom/04_bugs/31_vallist_8bit_shortstrings new file mode 100644 index 0000000..98ccf0b --- /dev/null +++ b/tests/custom/04_bugs/31_vallist_8bit_shortstrings @@ -0,0 +1,11 @@ +Due to using signed byte values when writing/reading short strings +to/from pointer addresses, 8 bit characters where incorrectly clamped +to `-1` (`255`). + +-- Testcase -- +{{ ord("รถ", 1)[0] != -1 }} +-- End -- + +-- Expect stdout -- +true +-- End -- |