forked from gbdev/rgbds
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
; default charmap 'main' | ||
charmap "a", 1 | ||
charmap "ab", 2 | ||
charmap "abc", 3 | ||
|
||
newcharmap second | ||
charmap "d", 4 | ||
charmap "e", 5 | ||
charmap {__ISO_8601_UTC__}, 6 ; expands with quotes | ||
|
||
setcharmap main | ||
|
||
assert ischar("a") | ||
assert ischar("ab") | ||
assert ischar(strcat("ab", "c")) | ||
|
||
assert !ischar("") ; empty | ||
assert !ischar("A") ; case sensitive | ||
assert !ischar("aa") ; multiple chars "a" "a" | ||
assert !ischar("d") ; unmapped char "d" | ||
assert !ischar("bc") ; unmapped chars "b" "c" | ||
|
||
setcharmap second | ||
|
||
assert ischar("d") ; now "d" is mapped | ||
assert !ischar("a") ; only in 'main' | ||
assert !ischar("bc") ; still unmapped chars | ||
assert ischar({__ISO_8601_UTC__}) |
Empty file.
Empty file.