Skip to content

Commit 799941e

Browse files
committed
move tests
1 parent 7e99864 commit 799941e

File tree

213 files changed

+461
-544
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+461
-544
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
FLOAT_NUMBER "0e" error: Missing digits after the exponent symbol
2+
WHITESPACE "\n"
3+
FLOAT_NUMBER "0E" error: Missing digits after the exponent symbol
4+
WHITESPACE "\n\n"
5+
FLOAT_NUMBER "42e+" error: Missing digits after the exponent symbol
6+
WHITESPACE "\n"
7+
FLOAT_NUMBER "42e-" error: Missing digits after the exponent symbol
8+
WHITESPACE "\n"
9+
FLOAT_NUMBER "42E+" error: Missing digits after the exponent symbol
10+
WHITESPACE "\n"
11+
FLOAT_NUMBER "42E-" error: Missing digits after the exponent symbol
12+
WHITESPACE "\n\n"
13+
INT_NUMBER "42"
14+
DOT "."
15+
IDENT "e"
16+
PLUS "+"
17+
WHITESPACE "\n"
18+
INT_NUMBER "42"
19+
DOT "."
20+
IDENT "e"
21+
MINUS "-"
22+
WHITESPACE "\n"
23+
INT_NUMBER "42"
24+
DOT "."
25+
IDENT "E"
26+
PLUS "+"
27+
WHITESPACE "\n"
28+
INT_NUMBER "42"
29+
DOT "."
30+
IDENT "E"
31+
MINUS "-"
32+
WHITESPACE "\n\n"
33+
FLOAT_NUMBER "42.2e+" error: Missing digits after the exponent symbol
34+
WHITESPACE "\n"
35+
FLOAT_NUMBER "42.2e-" error: Missing digits after the exponent symbol
36+
WHITESPACE "\n"
37+
FLOAT_NUMBER "42.2E+" error: Missing digits after the exponent symbol
38+
WHITESPACE "\n"
39+
FLOAT_NUMBER "42.2E-" error: Missing digits after the exponent symbol
40+
WHITESPACE "\n\n"
41+
FLOAT_NUMBER "42.2e+f32" error: Missing digits after the exponent symbol
42+
WHITESPACE "\n"
43+
FLOAT_NUMBER "42.2e-f32" error: Missing digits after the exponent symbol
44+
WHITESPACE "\n"
45+
FLOAT_NUMBER "42.2E+f32" error: Missing digits after the exponent symbol
46+
WHITESPACE "\n"
47+
FLOAT_NUMBER "42.2E-f32" error: Missing digits after the exponent symbol
48+
WHITESPACE "\n"
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
INT_NUMBER "0b" error: Missing digits after the integer base prefix
2+
WHITESPACE "\n"
3+
INT_NUMBER "0o" error: Missing digits after the integer base prefix
4+
WHITESPACE "\n"
5+
INT_NUMBER "0x" error: Missing digits after the integer base prefix
6+
WHITESPACE "\n\n"
7+
INT_NUMBER "0b_" error: Missing digits after the integer base prefix
8+
WHITESPACE "\n"
9+
INT_NUMBER "0o_" error: Missing digits after the integer base prefix
10+
WHITESPACE "\n"
11+
INT_NUMBER "0x_" error: Missing digits after the integer base prefix
12+
WHITESPACE "\n\n"
13+
INT_NUMBER "0bnoDigit" error: Missing digits after the integer base prefix
14+
WHITESPACE "\n"
15+
INT_NUMBER "0onoDigit" error: Missing digits after the integer base prefix
16+
WHITESPACE "\n"
17+
INT_NUMBER "0xnoDigit" error: Missing digits after the integer base prefix
18+
WHITESPACE "\n\n"
19+
INT_NUMBER "0xG" error: Missing digits after the integer base prefix
20+
WHITESPACE "\n"
21+
INT_NUMBER "0xg" error: Missing digits after the integer base prefix
22+
WHITESPACE "\n\n"
23+
INT_NUMBER "0x_g" error: Missing digits after the integer base prefix
24+
WHITESPACE "\n"
25+
INT_NUMBER "0x_G" error: Missing digits after the integer base prefix
26+
WHITESPACE "\n"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
LIFETIME_IDENT "'1" error: Lifetime name cannot start with a number
2+
WHITESPACE "\n"
3+
LIFETIME_IDENT "'1lifetime" error: Lifetime name cannot start with a number
4+
WHITESPACE "\n"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
COMMENT "/*" error: Missing trailing `*/` symbols to terminate the block comment
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
COMMENT "/* comment\n" error: Missing trailing `*/` symbols to terminate the block comment
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE "b'" error: Missing trailing `'` symbol to terminate the byte literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE_STRING "b\"" error: Missing trailing `"` symbol to terminate the byte string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE_STRING "b\"\\x7f" error: Missing trailing `"` symbol to terminate the byte string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE_STRING "b\"🦀" error: Missing trailing `"` symbol to terminate the byte string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE_STRING "b\"\\" error: Missing trailing `"` symbol to terminate the byte string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE_STRING "b\"\\\"" error: Missing trailing `"` symbol to terminate the byte string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE_STRING "b\"\\n" error: Missing trailing `"` symbol to terminate the byte string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE_STRING "b\" " error: Missing trailing `"` symbol to terminate the byte string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE_STRING "b\"\\u{20AA}" error: Missing trailing `"` symbol to terminate the byte string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE "b'\\x7f" error: Missing trailing `'` symbol to terminate the byte literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE "b'🦀" error: Missing trailing `'` symbol to terminate the byte literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE "b'\\" error: Missing trailing `'` symbol to terminate the byte literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE "b'\\n" error: Missing trailing `'` symbol to terminate the byte literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE "b'\\'" error: Missing trailing `'` symbol to terminate the byte literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE "b' " error: Missing trailing `'` symbol to terminate the byte literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE "b'\\u{20AA}" error: Missing trailing `'` symbol to terminate the byte literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CHAR "'" error: Missing trailing `'` symbol to terminate the character literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CHAR "'\\x7f" error: Missing trailing `'` symbol to terminate the character literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CHAR "'🦀" error: Missing trailing `'` symbol to terminate the character literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CHAR "'\\" error: Missing trailing `'` symbol to terminate the character literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CHAR "'\\n" error: Missing trailing `'` symbol to terminate the character literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CHAR "'\\'" error: Missing trailing `'` symbol to terminate the character literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CHAR "' " error: Missing trailing `'` symbol to terminate the character literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CHAR "'\\u{20AA}" error: Missing trailing `'` symbol to terminate the character literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
COMMENT "/* /* /*\n" error: Missing trailing `*/` symbols to terminate the block comment
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
COMMENT "/** /*! /* comment */ */\n" error: Missing trailing `*/` symbols to terminate the block comment
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE_STRING "br##\"" error: Missing trailing `"` with `#` symbols to terminate the raw byte string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE_STRING "br##\"\\x7f" error: Missing trailing `"` with `#` symbols to terminate the raw byte string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE_STRING "br##\"🦀" error: Missing trailing `"` with `#` symbols to terminate the raw byte string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE_STRING "br##\"\\" error: Missing trailing `"` with `#` symbols to terminate the raw byte string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE_STRING "br##\"\\n" error: Missing trailing `"` with `#` symbols to terminate the raw byte string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE_STRING "br##\" " error: Missing trailing `"` with `#` symbols to terminate the raw byte string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE_STRING "br##\"\\u{20AA}" error: Missing trailing `"` with `#` symbols to terminate the raw byte string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
STRING "r##\"" error: Missing trailing `"` with `#` symbols to terminate the raw string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
STRING "r##\"\\x7f" error: Missing trailing `"` with `#` symbols to terminate the raw string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
STRING "r##\"🦀" error: Missing trailing `"` with `#` symbols to terminate the raw string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
STRING "r##\"\\" error: Missing trailing `"` with `#` symbols to terminate the raw string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
STRING "r##\"\\n" error: Missing trailing `"` with `#` symbols to terminate the raw string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
STRING "r##\" " error: Missing trailing `"` with `#` symbols to terminate the raw string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
STRING "r##\"\\u{20AA}" error: Missing trailing `"` with `#` symbols to terminate the raw string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
STRING "\"" error: Missing trailing `"` symbol to terminate the string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
STRING "\"\\x7f" error: Missing trailing `"` symbol to terminate the string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
STRING "\"🦀" error: Missing trailing `"` symbol to terminate the string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
STRING "\"\\" error: Missing trailing `"` symbol to terminate the string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
STRING "\"\\\"" error: Missing trailing `"` symbol to terminate the string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
STRING "\"\\n" error: Missing trailing `"` symbol to terminate the string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
STRING "\" " error: Missing trailing `"` symbol to terminate the string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
STRING "\"\\u{20AA}" error: Missing trailing `"` symbol to terminate the string literal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BYTE_STRING "br##" error: Missing `"` symbol after `#` symbols to begin the raw byte string literal
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
BYTE_STRING "br## " error: Missing `"` symbol after `#` symbols to begin the raw byte string literal
2+
IDENT "I"
3+
WHITESPACE " "
4+
IDENT "lack"
5+
WHITESPACE " "
6+
IDENT "a"
7+
WHITESPACE " "
8+
IDENT "quote"
9+
BANG "!"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
STRING "r##" error: Missing `"` symbol after `#` symbols to begin the raw string literal
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
STRING "r## " error: Missing `"` symbol after `#` symbols to begin the raw string literal
2+
IDENT "I"
3+
WHITESPACE " "
4+
IDENT "lack"
5+
WHITESPACE " "
6+
IDENT "a"
7+
WHITESPACE " "
8+
IDENT "quote"
9+
BANG "!"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
COMMENT "/* */"
2+
WHITESPACE "\n"
3+
COMMENT "/**/"
4+
WHITESPACE "\n"
5+
COMMENT "/* /* */ */"
6+
WHITESPACE "\n"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
BYTE "b''"
2+
WHITESPACE " "
3+
BYTE "b'x'"
4+
WHITESPACE " "
5+
BYTE_STRING "b\"foo\""
6+
WHITESPACE " "
7+
BYTE_STRING "br\"\""
8+
WHITESPACE "\n"
9+
BYTE "b''suf"
10+
WHITESPACE " "
11+
BYTE_STRING "b\"\"ix"
12+
WHITESPACE " "
13+
BYTE_STRING "br\"\"br"
14+
WHITESPACE "\n"
15+
BYTE "b'\\n'"
16+
WHITESPACE " "
17+
BYTE "b'\\\\'"
18+
WHITESPACE " "
19+
BYTE "b'\\''"
20+
WHITESPACE " "
21+
BYTE "b'hello'"
22+
WHITESPACE "\n"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
CHAR "'x'"
2+
WHITESPACE " "
3+
CHAR "' '"
4+
WHITESPACE " "
5+
CHAR "'0'"
6+
WHITESPACE " "
7+
CHAR "'hello'"
8+
WHITESPACE " "
9+
CHAR "'\\x7f'"
10+
WHITESPACE " "
11+
CHAR "'\\n'"
12+
WHITESPACE " "
13+
CHAR "'\\\\'"
14+
WHITESPACE " "
15+
CHAR "'\\''"
16+
WHITESPACE "\n"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
IDENT "hello"
2+
WHITESPACE " "
3+
IDENT "world"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
IDENT "foo"
2+
WHITESPACE " "
3+
IDENT "foo_"
4+
WHITESPACE " "
5+
IDENT "_foo"
6+
WHITESPACE " "
7+
UNDERSCORE "_"
8+
WHITESPACE " "
9+
IDENT "__"
10+
WHITESPACE " "
11+
IDENT "x"
12+
WHITESPACE " "
13+
IDENT "привет"
14+
WHITESPACE "\n"
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
ASYNC_KW "async"
2+
WHITESPACE " "
3+
FN_KW "fn"
4+
WHITESPACE " "
5+
USE_KW "use"
6+
WHITESPACE " "
7+
STRUCT_KW "struct"
8+
WHITESPACE " "
9+
TRAIT_KW "trait"
10+
WHITESPACE " "
11+
ENUM_KW "enum"
12+
WHITESPACE " "
13+
IMPL_KW "impl"
14+
WHITESPACE " "
15+
TRUE_KW "true"
16+
WHITESPACE " "
17+
FALSE_KW "false"
18+
WHITESPACE " "
19+
AS_KW "as"
20+
WHITESPACE " "
21+
EXTERN_KW "extern"
22+
WHITESPACE " "
23+
CRATE_KW "crate"
24+
WHITESPACE "\n"
25+
MOD_KW "mod"
26+
WHITESPACE " "
27+
PUB_KW "pub"
28+
WHITESPACE " "
29+
SELF_KW "self"
30+
WHITESPACE " "
31+
SUPER_KW "super"
32+
WHITESPACE " "
33+
IN_KW "in"
34+
WHITESPACE " "
35+
WHERE_KW "where"
36+
WHITESPACE " "
37+
FOR_KW "for"
38+
WHITESPACE " "
39+
LOOP_KW "loop"
40+
WHITESPACE " "
41+
WHILE_KW "while"
42+
WHITESPACE " "
43+
IF_KW "if"
44+
WHITESPACE " "
45+
MATCH_KW "match"
46+
WHITESPACE " "
47+
CONST_KW "const"
48+
WHITESPACE "\n"
49+
STATIC_KW "static"
50+
WHITESPACE " "
51+
MUT_KW "mut"
52+
WHITESPACE " "
53+
TYPE_KW "type"
54+
WHITESPACE " "
55+
REF_KW "ref"
56+
WHITESPACE " "
57+
LET_KW "let"
58+
WHITESPACE " "
59+
ELSE_KW "else"
60+
WHITESPACE " "
61+
MOVE_KW "move"
62+
WHITESPACE " "
63+
RETURN_KW "return"
64+
WHITESPACE "\n"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
LIFETIME_IDENT "'a"
2+
WHITESPACE " "
3+
LIFETIME_IDENT "'foo"
4+
WHITESPACE " "
5+
LIFETIME_IDENT "'foo_bar_baz"
6+
WHITESPACE " "
7+
LIFETIME_IDENT "'_"
8+
WHITESPACE "\n"

0 commit comments

Comments
 (0)