aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/data/lexer/0004_number.rs7
-rw-r--r--tests/data/lexer/0004_number.txt62
2 files changed, 69 insertions, 0 deletions
diff --git a/tests/data/lexer/0004_number.rs b/tests/data/lexer/0004_number.rs
new file mode 100644
index 000000000..af53ff2cd
--- /dev/null
+++ b/tests/data/lexer/0004_number.rs
@@ -0,0 +1,7 @@
10 0b 0o 0x 00 0_ 0. 0e 0E 0z
201790 0b1790 0o1790 0x1790aAbBcCdDeEfF 001279 0_1279 0.1279 0e1279 0E1279
30..2
40.foo()
50e+1
60.e+1
70.0E-2
diff --git a/tests/data/lexer/0004_number.txt b/tests/data/lexer/0004_number.txt
new file mode 100644
index 000000000..e9ad8410d
--- /dev/null
+++ b/tests/data/lexer/0004_number.txt
@@ -0,0 +1,62 @@
1INT_NUMBER 1
2WHITESPACE 1
3INT_NUMBER 2
4WHITESPACE 1
5INT_NUMBER 2
6WHITESPACE 1
7INT_NUMBER 2
8WHITESPACE 1
9INT_NUMBER 2
10WHITESPACE 1
11INT_NUMBER 2
12WHITESPACE 1
13FLOAT_NUMBER 2
14WHITESPACE 1
15INT_NUMBER 2
16WHITESPACE 1
17INT_NUMBER 2
18WHITESPACE 1
19INT_NUMBER 1
20IDENT 1
21WHITESPACE 1
22INT_NUMBER 5
23WHITESPACE 1
24INT_NUMBER 6
25WHITESPACE 1
26INT_NUMBER 6
27WHITESPACE 1
28INT_NUMBER 18
29WHITESPACE 1
30INT_NUMBER 6
31WHITESPACE 1
32INT_NUMBER 6
33WHITESPACE 1
34FLOAT_NUMBER 6
35WHITESPACE 1
36INT_NUMBER 6
37WHITESPACE 1
38INT_NUMBER 6
39WHITESPACE 1
40INT_NUMBER 1
41ERROR 1
42ERROR 1
43INT_NUMBER 1
44WHITESPACE 1
45INT_NUMBER 1
46ERROR 1
47IDENT 3
48ERROR 1
49ERROR 1
50WHITESPACE 1
51INT_NUMBER 2
52ERROR 1
53INT_NUMBER 1
54WHITESPACE 1
55INT_NUMBER 1
56ERROR 1
57IDENT 1
58ERROR 1
59INT_NUMBER 1
60WHITESPACE 1
61FLOAT_NUMBER 6
62WHITESPACE 1