diff options
author | Aleksey Kladov <[email protected]> | 2019-07-24 10:38:21 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-07-24 10:49:19 +0100 |
commit | 459241f272748ff2e57b2c7e84f5a04f78d67edb (patch) | |
tree | 2353f8f068962313d0b2748aab58b71c4ca456d2 /crates/ra_syntax/test_data/lexer/0004_numbers.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/lexer/0004_numbers.txt')
-rw-r--r-- | crates/ra_syntax/test_data/lexer/0004_numbers.txt | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/lexer/0004_numbers.txt b/crates/ra_syntax/test_data/lexer/0004_numbers.txt new file mode 100644 index 000000000..7bb89b8ae --- /dev/null +++ b/crates/ra_syntax/test_data/lexer/0004_numbers.txt | |||
@@ -0,0 +1,66 @@ | |||
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 | FLOAT_NUMBER 2 "0e" | ||
16 | WHITESPACE 1 " " | ||
17 | FLOAT_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 | FLOAT_NUMBER 6 "0e1279" | ||
36 | WHITESPACE 1 " " | ||
37 | FLOAT_NUMBER 6 "0E1279" | ||
38 | WHITESPACE 1 "\n" | ||
39 | INT_NUMBER 1 "0" | ||
40 | DOT 1 "." | ||
41 | DOT 1 "." | ||
42 | INT_NUMBER 1 "2" | ||
43 | WHITESPACE 1 "\n" | ||
44 | INT_NUMBER 1 "0" | ||
45 | DOT 1 "." | ||
46 | IDENT 3 "foo" | ||
47 | L_PAREN 1 "(" | ||
48 | R_PAREN 1 ")" | ||
49 | WHITESPACE 1 "\n" | ||
50 | FLOAT_NUMBER 4 "0e+1" | ||
51 | WHITESPACE 1 "\n" | ||
52 | INT_NUMBER 1 "0" | ||
53 | DOT 1 "." | ||
54 | IDENT 1 "e" | ||
55 | PLUS 1 "+" | ||
56 | INT_NUMBER 1 "1" | ||
57 | WHITESPACE 1 "\n" | ||
58 | FLOAT_NUMBER 6 "0.0E-2" | ||
59 | WHITESPACE 1 "\n" | ||
60 | FLOAT_NUMBER 26 "0___0.10000____0000e+111__" | ||
61 | WHITESPACE 1 "\n" | ||
62 | INT_NUMBER 4 "1i64" | ||
63 | WHITESPACE 1 " " | ||
64 | FLOAT_NUMBER 7 "92.0f32" | ||
65 | WHITESPACE 1 " " | ||
66 | INT_NUMBER 5 "11__s" | ||