diff options
author | Aleksey Kladov <[email protected]> | 2017-12-31 08:32:49 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2017-12-31 08:32:49 +0000 |
commit | 9d5138bf11eb0c979c49f904010d2d3690bdf74c (patch) | |
tree | 0da765e0005c601e12f8228fe4da2a3d84a4d4ca /tests/data/lexer/0004_numbers.txt | |
parent | 0b49db623f74c698a92ee8c686709c5abb9fcfbd (diff) |
Lexer: simplistic char & lifetime tests
Diffstat (limited to 'tests/data/lexer/0004_numbers.txt')
-rw-r--r-- | tests/data/lexer/0004_numbers.txt | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/tests/data/lexer/0004_numbers.txt b/tests/data/lexer/0004_numbers.txt new file mode 100644 index 000000000..be8dee48b --- /dev/null +++ b/tests/data/lexer/0004_numbers.txt | |||
@@ -0,0 +1,67 @@ | |||
1 | INT_NUMBER 1 "0" | ||
2 | WHITESPACE 1 " " | ||
3 | INT_NUMBER 2 "0b" | ||
4 | WHITESPACE 1 " " | ||
5 | INT_NUMBER 2 "0o" | ||
6 | WHITESPACE 1 " " | ||
7 | INT_NUMBER 2 "0x" | ||
8 | WHITESPACE 1 " " | ||
9 | INT_NUMBER 2 "00" | ||
10 | WHITESPACE 1 " " | ||
11 | INT_NUMBER 2 "0_" | ||
12 | WHITESPACE 1 " " | ||
13 | FLOAT_NUMBER 2 "0." | ||
14 | WHITESPACE 1 " " | ||
15 | INT_NUMBER 2 "0e" | ||
16 | WHITESPACE 1 " " | ||
17 | INT_NUMBER 2 "0E" | ||
18 | WHITESPACE 1 " " | ||
19 | INT_NUMBER 2 "0z" | ||
20 | WHITESPACE 1 "\n" | ||
21 | INT_NUMBER 5 "01790" | ||
22 | WHITESPACE 1 " " | ||
23 | INT_NUMBER 6 "0b1790" | ||
24 | WHITESPACE 1 " " | ||
25 | INT_NUMBER 6 "0o1790" | ||
26 | WHITESPACE 1 " " | ||
27 | INT_NUMBER 18 "0x1790aAbBcCdDeEfF" | ||
28 | WHITESPACE 1 " " | ||
29 | INT_NUMBER 6 "001279" | ||
30 | WHITESPACE 1 " " | ||
31 | INT_NUMBER 6 "0_1279" | ||
32 | WHITESPACE 1 " " | ||
33 | FLOAT_NUMBER 6 "0.1279" | ||
34 | WHITESPACE 1 " " | ||
35 | INT_NUMBER 6 "0e1279" | ||
36 | WHITESPACE 1 " " | ||
37 | INT_NUMBER 6 "0E1279" | ||
38 | WHITESPACE 1 "\n" | ||
39 | INT_NUMBER 1 "0" | ||
40 | DOTDOT 2 ".." | ||
41 | INT_NUMBER 1 "2" | ||
42 | WHITESPACE 1 "\n" | ||
43 | INT_NUMBER 1 "0" | ||
44 | DOT 1 "." | ||
45 | IDENT 3 "foo" | ||
46 | L_PAREN 1 "(" | ||
47 | R_PAREN 1 ")" | ||
48 | WHITESPACE 1 "\n" | ||
49 | INT_NUMBER 2 "0e" | ||
50 | ERROR 1 "+" | ||
51 | INT_NUMBER 1 "1" | ||
52 | WHITESPACE 1 "\n" | ||
53 | INT_NUMBER 1 "0" | ||
54 | DOT 1 "." | ||
55 | IDENT 1 "e" | ||
56 | ERROR 1 "+" | ||
57 | INT_NUMBER 1 "1" | ||
58 | WHITESPACE 1 "\n" | ||
59 | FLOAT_NUMBER 6 "0.0E-2" | ||
60 | WHITESPACE 1 "\n" | ||
61 | FLOAT_NUMBER 26 "0___0.10000____0000e+111__" | ||
62 | WHITESPACE 1 "\n" | ||
63 | INT_NUMBER 4 "1i64" | ||
64 | WHITESPACE 1 " " | ||
65 | FLOAT_NUMBER 7 "92.0f32" | ||
66 | WHITESPACE 1 " " | ||
67 | INT_NUMBER 5 "11__s" | ||