Allow charmap to map 'characters' as well as "strings" (#1830)

This commit is contained in:
Rangi
2025-09-16 06:51:07 -04:00
committed by GitHub
parent 6cffd991f7
commit e0a6199f83
3 changed files with 13 additions and 10 deletions

View File

@@ -1,13 +1,13 @@
def s equs "d"
charmap "A", 1
charmap "B", 2
charmap "c{s}e", 3
charmap "F", 4, 5, 6
charmap 'A', 1
charmap 'B', 2
charmap 'c{s}e', 3
charmap 'F', 4, 5, 6
charmap "'", 42
charmap "\"", 1234
charmap "\n\r\t\0", 1337
charmap "',\",\\", 99
charmap '"', 1234
charmap '\n\r\t\0', 1337
charmap '\',\",\\', 99
MACRO char
assert (\1) == (\2)