diff options
Diffstat (limited to 'tests/data/lexer')
-rw-r--r-- | tests/data/lexer/0004_numbers.txt | 4 | ||||
-rw-r--r-- | tests/data/lexer/0005_symbols.rs | 5 | ||||
-rw-r--r-- | tests/data/lexer/0005_symbols.txt | 19 |
3 files changed, 24 insertions, 4 deletions
diff --git a/tests/data/lexer/0004_numbers.txt b/tests/data/lexer/0004_numbers.txt index be8dee48b..4b5fd9f71 100644 --- a/tests/data/lexer/0004_numbers.txt +++ b/tests/data/lexer/0004_numbers.txt | |||
@@ -47,13 +47,13 @@ L_PAREN 1 "(" | |||
47 | R_PAREN 1 ")" | 47 | R_PAREN 1 ")" |
48 | WHITESPACE 1 "\n" | 48 | WHITESPACE 1 "\n" |
49 | INT_NUMBER 2 "0e" | 49 | INT_NUMBER 2 "0e" |
50 | ERROR 1 "+" | 50 | PLUS 1 "+" |
51 | INT_NUMBER 1 "1" | 51 | INT_NUMBER 1 "1" |
52 | WHITESPACE 1 "\n" | 52 | WHITESPACE 1 "\n" |
53 | INT_NUMBER 1 "0" | 53 | INT_NUMBER 1 "0" |
54 | DOT 1 "." | 54 | DOT 1 "." |
55 | IDENT 1 "e" | 55 | IDENT 1 "e" |
56 | ERROR 1 "+" | 56 | PLUS 1 "+" |
57 | INT_NUMBER 1 "1" | 57 | INT_NUMBER 1 "1" |
58 | WHITESPACE 1 "\n" | 58 | WHITESPACE 1 "\n" |
59 | FLOAT_NUMBER 6 "0.0E-2" | 59 | FLOAT_NUMBER 6 "0.0E-2" |
diff --git a/tests/data/lexer/0005_symbols.rs b/tests/data/lexer/0005_symbols.rs index c41e985a1..487569b5a 100644 --- a/tests/data/lexer/0005_symbols.rs +++ b/tests/data/lexer/0005_symbols.rs | |||
@@ -1,5 +1,6 @@ | |||
1 | ; , ( ) { } [ ] < > @ # ~ ? $ | 1 | ; , ( ) { } [ ] < > @ # ~ ? $ & | + * / ^ % |
2 | . .. ... ..= | 2 | . .. ... ..= |
3 | : :: | 3 | : :: |
4 | = => | 4 | = => |
5 | ! != \ No newline at end of file | 5 | ! != |
6 | - -> | ||
diff --git a/tests/data/lexer/0005_symbols.txt b/tests/data/lexer/0005_symbols.txt index a1b777a92..ebb41accd 100644 --- a/tests/data/lexer/0005_symbols.txt +++ b/tests/data/lexer/0005_symbols.txt | |||
@@ -27,6 +27,20 @@ WHITESPACE 1 " " | |||
27 | QUESTION 1 "?" | 27 | QUESTION 1 "?" |
28 | WHITESPACE 1 " " | 28 | WHITESPACE 1 " " |
29 | DOLLAR 1 "$" | 29 | DOLLAR 1 "$" |
30 | WHITESPACE 1 " " | ||
31 | AMPERSAND 1 "&" | ||
32 | WHITESPACE 1 " " | ||
33 | PIPE 1 "|" | ||
34 | WHITESPACE 1 " " | ||
35 | PLUS 1 "+" | ||
36 | WHITESPACE 1 " " | ||
37 | STAR 1 "*" | ||
38 | WHITESPACE 1 " " | ||
39 | SLASH 1 "/" | ||
40 | WHITESPACE 1 " " | ||
41 | CARET 1 "^" | ||
42 | WHITESPACE 1 " " | ||
43 | PERCENT 1 "%" | ||
30 | WHITESPACE 1 "\n" | 44 | WHITESPACE 1 "\n" |
31 | DOT 1 "." | 45 | DOT 1 "." |
32 | WHITESPACE 1 " " | 46 | WHITESPACE 1 " " |
@@ -47,3 +61,8 @@ WHITESPACE 1 "\n" | |||
47 | NOT 1 "!" | 61 | NOT 1 "!" |
48 | WHITESPACE 1 " " | 62 | WHITESPACE 1 " " |
49 | NEQ 2 "!=" | 63 | NEQ 2 "!=" |
64 | WHITESPACE 1 "\n" | ||
65 | MINUS 1 "-" | ||
66 | WHITESPACE 1 " " | ||
67 | THIN_ARROW 2 "->" | ||
68 | WHITESPACE 1 "\n" | ||