Skip to content

Commit

Permalink
add unit tests for number separators
Browse files Browse the repository at this point in the history
  • Loading branch information
Helianthella committed May 7, 2020
1 parent 48849a0 commit 01dd499
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions npc/dev/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 01dd499

Please sign in to comment.