aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2022-02-01 18:43:43 +0100
committerBad Diode <bd@badd10de.dev>2022-02-01 18:43:43 +0100
commit5af70ecc0c8eafa7d6d31e16576cb4cf0713f5cc (patch)
treebb5ad458f19f4369c6c1c11c4fe4b137d358fc5a /tests
parentee1a5de91c875fb66724dc21c02333bfebe2a812 (diff)
downloadbdl-5af70ecc0c8eafa7d6d31e16576cb4cf0713f5cc.tar.gz
bdl-5af70ecc0c8eafa7d6d31e16576cb4cf0713f5cc.zip
Ensure EOF is handled properly
Diffstat (limited to 'tests')
-rw-r--r--tests/constants/numbers.bdl91
1 files changed, 38 insertions, 53 deletions
diff --git a/tests/constants/numbers.bdl b/tests/constants/numbers.bdl
index 0412af8..136b5fb 100644
--- a/tests/constants/numbers.bdl
+++ b/tests/constants/numbers.bdl
@@ -1,56 +1,41 @@
1; Signed integers. 1; Signed integers.
23 2(print 1:s8)
3; -1 3(print 52:s8)
40.1 4(print -1:s8)
543 5(print 0:s8)
60 6(print 1:s16)
7-123 7(print 52:s16)
80x123 8(print -1:s16)
90xabCd 9(print 0:s16)
100xABCDEF 10(print 1:s32)
11-0x12 11(print 52:s32)
12; a 12(print -1:s32)
13; fun 13(print 0:s32)
14; a.a 14(print 1:s64)
15; a.1 ; should err 15(print 52:s64)
16; 1.a ; should err 16(print -1:s64)
17; (print 1:s8) 17(print 0:s64)
18; (print 52:s8)
19; (print -1:s8)
20; (print 0:s8)
21; (print 1:s16)
22; (print 52:s16)
23; (print -1:s16)
24; (print 0:s16)
25; (print 1:s32)
26; (print 52:s32)
27; (print -1:s32)
28; (print 0:s32)
29; (print 1:s64)
30; (print 52:s64)
31; (print -1:s64)
32; (print 0:s64)
33 18
34; ; Unsigned integers. 19; Unsigned integers.
35; (print 1:u8) 20(print 1:u8)
36; (print 52:u8) 21(print 52:u8)
37; (print -1:u8) 22(print -1:u8)
38; (print 0:u8) 23(print 0:u8)
39; (print 1:u16) 24(print 1:u16)
40; (print 52:u16) 25(print 52:u16)
41; (print -1:u16) 26(print -1:u16)
42; (print 0:u16) 27(print 0:u16)
43; (print 1:u32) 28(print 1:u32)
44; (print 52:u32) 29(print 52:u32)
45; (print -1:u32) 30(print -1:u32)
46; (print 0:u32) 31(print 0:u32)
47; (print 1:u64) 32(print 1:u64)
48; (print 52:u64) 33(print 52:u64)
49; (print -1:u64) 34(print -1:u64)
50; (print 0:u64) 35(print 0:u64)
51 36
52; ; Type inference. 37; Type inference.
53; (print 1) 38(print 1)
54; (print 52) 39(print 52)
55; (print -1) 40(print -1)
56; (print 0) 41(print 0)