summaryrefslogtreecommitdiff
path: root/npc/dev/test.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/dev/test.txt')
-rw-r--r--npc/dev/test.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/npc/dev/test.txt b/npc/dev/test.txt
index c8c842055..291671913 100644
--- a/npc/dev/test.txt
+++ b/npc/dev/test.txt
@@ -156,6 +156,15 @@ function script HerculesSelfTestHelper {
.once = 1;
.errors = 0;
+ // number literals
+ callsub(OnCheck, "decimal number literal", 255, 255);
+ callsub(OnCheck, "hexadecimal number literal", 0xFF, 255);
+ callsub(OnCheck, "octal number literal", 0o377, 255);
+ callsub(OnCheck, "binary number literal", 0b11111111, 255);
+ callsub(OnCheck, "binary literal bitwise OR", 0b11110000 | 0xF, 255);
+ callsub(OnCheck, "decimal literal with separator", 2_5_5, 255);
+ callsub(OnCheck, "binary literal with separator", 0b_1111_1111, 255);
+
// Callsub (basic)
callsub(OnCheck, "Callsub", 1, 1);
callsub(OnCheck, "Callsub (getarg default values)", 1);