diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-04-04 15:22:48 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-04-04 15:46:09 +0200 |
| commit | 570c528b3e4e41af2bb8ec0cf091e52dd50db13a (patch) | |
| tree | 02ed402ad10741ae70fb9dab03ce735d35eac2a8 /tests/typ/compiler/ops.typ | |
| parent | f738d89ff2de20f3293a8e413160b7ab48cf593a (diff) | |
Integers with different bases
Diffstat (limited to 'tests/typ/compiler/ops.typ')
| -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. |
