mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Fix behavior of non-ASCII bytes with INCHARMAP (#1308)
This commit is contained in:
11
test/asm/charmap-unicode.asm
Normal file
11
test/asm/charmap-unicode.asm
Normal file
@@ -0,0 +1,11 @@
|
||||
MACRO test
|
||||
charmap \1, 42
|
||||
assert charlen(\1) == 1
|
||||
assert incharmap(\1) == 1
|
||||
ENDM
|
||||
|
||||
test "a" ; one ASCII
|
||||
test "hi~!!1" ; many ASCII
|
||||
test "デ" ; one UTF-8
|
||||
test "グレイシア" ; many UTF-8
|
||||
test "Pokémon" ; mixed
|
||||
Reference in New Issue
Block a user