diff options
Diffstat (limited to 'tests/typ/compiler')
| -rw-r--r-- | tests/typ/compiler/ops.typ | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/typ/compiler/ops.typ b/tests/typ/compiler/ops.typ index a29003ed..1a9a2169 100644 --- a/tests/typ/compiler/ops.typ +++ b/tests/typ/compiler/ops.typ @@ -110,6 +110,20 @@ } --- +// Test numbers with alternative bases. +#test(0x10, 16) +#test(0b1101, 13) +#test(0xA + 0xa, 0x14) + +--- +// Error: 2-7 invalid binary number +#0b123 + +--- +// Error: 2-8 invalid hexadecimal number +#0x123z + +--- // Test boolean operators. // Test not. |
