summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2020-05-03 23:13:16 -0400
committergumi <git@gumi.ca>2020-05-07 16:05:25 -0400
commit01dd499bcafa6fd29bfa70c505636a911b5f24a2 (patch)
treee8c55f51b0ede0891dc164e70bf3a17f1030ee32 /npc
parent48849a0e2ae0ee6a77d0e413fbed6a73a64211e7 (diff)
downloadhercules-01dd499bcafa6fd29bfa70c505636a911b5f24a2.tar.gz
hercules-01dd499bcafa6fd29bfa70c505636a911b5f24a2.tar.bz2
hercules-01dd499bcafa6fd29bfa70c505636a911b5f24a2.tar.xz
hercules-01dd499bcafa6fd29bfa70c505636a911b5f24a2.zip
add unit tests for number separators
Diffstat (limited to 'npc')
-rw-r--r--npc/dev/test.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/npc/dev/test.txt b/npc/dev/test.txt
index f7f28d622..842c90f55 100644
--- a/npc/dev/test.txt
+++ b/npc/dev/test.txt
@@ -128,6 +128,8 @@ function script HerculesSelfTestHelper {
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);