mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
move tests
This commit is contained in:
parent
7e99864dbf
commit
799941e05e
213 changed files with 461 additions and 544 deletions
48
crates/parser/test_data/lexer/err/empty_exponent.txt
Normal file
48
crates/parser/test_data/lexer/err/empty_exponent.txt
Normal file
|
@ -0,0 +1,48 @@
|
|||
FLOAT_NUMBER "0e" error: Missing digits after the exponent symbol
|
||||
WHITESPACE "\n"
|
||||
FLOAT_NUMBER "0E" error: Missing digits after the exponent symbol
|
||||
WHITESPACE "\n\n"
|
||||
FLOAT_NUMBER "42e+" error: Missing digits after the exponent symbol
|
||||
WHITESPACE "\n"
|
||||
FLOAT_NUMBER "42e-" error: Missing digits after the exponent symbol
|
||||
WHITESPACE "\n"
|
||||
FLOAT_NUMBER "42E+" error: Missing digits after the exponent symbol
|
||||
WHITESPACE "\n"
|
||||
FLOAT_NUMBER "42E-" error: Missing digits after the exponent symbol
|
||||
WHITESPACE "\n\n"
|
||||
INT_NUMBER "42"
|
||||
DOT "."
|
||||
IDENT "e"
|
||||
PLUS "+"
|
||||
WHITESPACE "\n"
|
||||
INT_NUMBER "42"
|
||||
DOT "."
|
||||
IDENT "e"
|
||||
MINUS "-"
|
||||
WHITESPACE "\n"
|
||||
INT_NUMBER "42"
|
||||
DOT "."
|
||||
IDENT "E"
|
||||
PLUS "+"
|
||||
WHITESPACE "\n"
|
||||
INT_NUMBER "42"
|
||||
DOT "."
|
||||
IDENT "E"
|
||||
MINUS "-"
|
||||
WHITESPACE "\n\n"
|
||||
FLOAT_NUMBER "42.2e+" error: Missing digits after the exponent symbol
|
||||
WHITESPACE "\n"
|
||||
FLOAT_NUMBER "42.2e-" error: Missing digits after the exponent symbol
|
||||
WHITESPACE "\n"
|
||||
FLOAT_NUMBER "42.2E+" error: Missing digits after the exponent symbol
|
||||
WHITESPACE "\n"
|
||||
FLOAT_NUMBER "42.2E-" error: Missing digits after the exponent symbol
|
||||
WHITESPACE "\n\n"
|
||||
FLOAT_NUMBER "42.2e+f32" error: Missing digits after the exponent symbol
|
||||
WHITESPACE "\n"
|
||||
FLOAT_NUMBER "42.2e-f32" error: Missing digits after the exponent symbol
|
||||
WHITESPACE "\n"
|
||||
FLOAT_NUMBER "42.2E+f32" error: Missing digits after the exponent symbol
|
||||
WHITESPACE "\n"
|
||||
FLOAT_NUMBER "42.2E-f32" error: Missing digits after the exponent symbol
|
||||
WHITESPACE "\n"
|
26
crates/parser/test_data/lexer/err/empty_int.txt
Normal file
26
crates/parser/test_data/lexer/err/empty_int.txt
Normal file
|
@ -0,0 +1,26 @@
|
|||
INT_NUMBER "0b" error: Missing digits after the integer base prefix
|
||||
WHITESPACE "\n"
|
||||
INT_NUMBER "0o" error: Missing digits after the integer base prefix
|
||||
WHITESPACE "\n"
|
||||
INT_NUMBER "0x" error: Missing digits after the integer base prefix
|
||||
WHITESPACE "\n\n"
|
||||
INT_NUMBER "0b_" error: Missing digits after the integer base prefix
|
||||
WHITESPACE "\n"
|
||||
INT_NUMBER "0o_" error: Missing digits after the integer base prefix
|
||||
WHITESPACE "\n"
|
||||
INT_NUMBER "0x_" error: Missing digits after the integer base prefix
|
||||
WHITESPACE "\n\n"
|
||||
INT_NUMBER "0bnoDigit" error: Missing digits after the integer base prefix
|
||||
WHITESPACE "\n"
|
||||
INT_NUMBER "0onoDigit" error: Missing digits after the integer base prefix
|
||||
WHITESPACE "\n"
|
||||
INT_NUMBER "0xnoDigit" error: Missing digits after the integer base prefix
|
||||
WHITESPACE "\n\n"
|
||||
INT_NUMBER "0xG" error: Missing digits after the integer base prefix
|
||||
WHITESPACE "\n"
|
||||
INT_NUMBER "0xg" error: Missing digits after the integer base prefix
|
||||
WHITESPACE "\n\n"
|
||||
INT_NUMBER "0x_g" error: Missing digits after the integer base prefix
|
||||
WHITESPACE "\n"
|
||||
INT_NUMBER "0x_G" error: Missing digits after the integer base prefix
|
||||
WHITESPACE "\n"
|
|
@ -0,0 +1,4 @@
|
|||
LIFETIME_IDENT "'1" error: Lifetime name cannot start with a number
|
||||
WHITESPACE "\n"
|
||||
LIFETIME_IDENT "'1lifetime" error: Lifetime name cannot start with a number
|
||||
WHITESPACE "\n"
|
|
@ -0,0 +1 @@
|
|||
COMMENT "/*" error: Missing trailing `*/` symbols to terminate the block comment
|
|
@ -0,0 +1 @@
|
|||
COMMENT "/* comment\n" error: Missing trailing `*/` symbols to terminate the block comment
|
|
@ -0,0 +1 @@
|
|||
BYTE "b'" error: Missing trailing `'` symbol to terminate the byte literal
|
|
@ -0,0 +1 @@
|
|||
BYTE_STRING "b\"" error: Missing trailing `"` symbol to terminate the byte string literal
|
|
@ -0,0 +1 @@
|
|||
BYTE_STRING "b\"\\x7f" error: Missing trailing `"` symbol to terminate the byte string literal
|
|
@ -0,0 +1 @@
|
|||
BYTE_STRING "b\"🦀" error: Missing trailing `"` symbol to terminate the byte string literal
|
|
@ -0,0 +1 @@
|
|||
BYTE_STRING "b\"\\" error: Missing trailing `"` symbol to terminate the byte string literal
|
|
@ -0,0 +1 @@
|
|||
BYTE_STRING "b\"\\\"" error: Missing trailing `"` symbol to terminate the byte string literal
|
|
@ -0,0 +1 @@
|
|||
BYTE_STRING "b\"\\n" error: Missing trailing `"` symbol to terminate the byte string literal
|
|
@ -0,0 +1 @@
|
|||
BYTE_STRING "b\" " error: Missing trailing `"` symbol to terminate the byte string literal
|
|
@ -0,0 +1 @@
|
|||
BYTE_STRING "b\"\\u{20AA}" error: Missing trailing `"` symbol to terminate the byte string literal
|
|
@ -0,0 +1 @@
|
|||
BYTE "b'\\x7f" error: Missing trailing `'` symbol to terminate the byte literal
|
|
@ -0,0 +1 @@
|
|||
BYTE "b'🦀" error: Missing trailing `'` symbol to terminate the byte literal
|
|
@ -0,0 +1 @@
|
|||
BYTE "b'\\" error: Missing trailing `'` symbol to terminate the byte literal
|
|
@ -0,0 +1 @@
|
|||
BYTE "b'\\n" error: Missing trailing `'` symbol to terminate the byte literal
|
|
@ -0,0 +1 @@
|
|||
BYTE "b'\\'" error: Missing trailing `'` symbol to terminate the byte literal
|
|
@ -0,0 +1 @@
|
|||
BYTE "b' " error: Missing trailing `'` symbol to terminate the byte literal
|
|
@ -0,0 +1 @@
|
|||
BYTE "b'\\u{20AA}" error: Missing trailing `'` symbol to terminate the byte literal
|
|
@ -0,0 +1 @@
|
|||
CHAR "'" error: Missing trailing `'` symbol to terminate the character literal
|
|
@ -0,0 +1 @@
|
|||
CHAR "'\\x7f" error: Missing trailing `'` symbol to terminate the character literal
|
|
@ -0,0 +1 @@
|
|||
CHAR "'🦀" error: Missing trailing `'` symbol to terminate the character literal
|
|
@ -0,0 +1 @@
|
|||
CHAR "'\\" error: Missing trailing `'` symbol to terminate the character literal
|
|
@ -0,0 +1 @@
|
|||
CHAR "'\\n" error: Missing trailing `'` symbol to terminate the character literal
|
|
@ -0,0 +1 @@
|
|||
CHAR "'\\'" error: Missing trailing `'` symbol to terminate the character literal
|
|
@ -0,0 +1 @@
|
|||
CHAR "' " error: Missing trailing `'` symbol to terminate the character literal
|
|
@ -0,0 +1 @@
|
|||
CHAR "'\\u{20AA}" error: Missing trailing `'` symbol to terminate the character literal
|
|
@ -0,0 +1 @@
|
|||
COMMENT "/* /* /*\n" error: Missing trailing `*/` symbols to terminate the block comment
|
|
@ -0,0 +1 @@
|
|||
COMMENT "/** /*! /* comment */ */\n" error: Missing trailing `*/` symbols to terminate the block comment
|
|
@ -0,0 +1 @@
|
|||
BYTE_STRING "br##\"" error: Missing trailing `"` with `#` symbols to terminate the raw byte string literal
|
|
@ -0,0 +1 @@
|
|||
BYTE_STRING "br##\"\\x7f" error: Missing trailing `"` with `#` symbols to terminate the raw byte string literal
|
|
@ -0,0 +1 @@
|
|||
BYTE_STRING "br##\"🦀" error: Missing trailing `"` with `#` symbols to terminate the raw byte string literal
|
|
@ -0,0 +1 @@
|
|||
BYTE_STRING "br##\"\\" error: Missing trailing `"` with `#` symbols to terminate the raw byte string literal
|
|
@ -0,0 +1 @@
|
|||
BYTE_STRING "br##\"\\n" error: Missing trailing `"` with `#` symbols to terminate the raw byte string literal
|
|
@ -0,0 +1 @@
|
|||
BYTE_STRING "br##\" " error: Missing trailing `"` with `#` symbols to terminate the raw byte string literal
|
|
@ -0,0 +1 @@
|
|||
BYTE_STRING "br##\"\\u{20AA}" error: Missing trailing `"` with `#` symbols to terminate the raw byte string literal
|
|
@ -0,0 +1 @@
|
|||
STRING "r##\"" error: Missing trailing `"` with `#` symbols to terminate the raw string literal
|
|
@ -0,0 +1 @@
|
|||
STRING "r##\"\\x7f" error: Missing trailing `"` with `#` symbols to terminate the raw string literal
|
|
@ -0,0 +1 @@
|
|||
STRING "r##\"🦀" error: Missing trailing `"` with `#` symbols to terminate the raw string literal
|
|
@ -0,0 +1 @@
|
|||
STRING "r##\"\\" error: Missing trailing `"` with `#` symbols to terminate the raw string literal
|
|
@ -0,0 +1 @@
|
|||
STRING "r##\"\\n" error: Missing trailing `"` with `#` symbols to terminate the raw string literal
|
|
@ -0,0 +1 @@
|
|||
STRING "r##\" " error: Missing trailing `"` with `#` symbols to terminate the raw string literal
|
|
@ -0,0 +1 @@
|
|||
STRING "r##\"\\u{20AA}" error: Missing trailing `"` with `#` symbols to terminate the raw string literal
|
|
@ -0,0 +1 @@
|
|||
STRING "\"" error: Missing trailing `"` symbol to terminate the string literal
|
|
@ -0,0 +1 @@
|
|||
STRING "\"\\x7f" error: Missing trailing `"` symbol to terminate the string literal
|
|
@ -0,0 +1 @@
|
|||
STRING "\"🦀" error: Missing trailing `"` symbol to terminate the string literal
|
|
@ -0,0 +1 @@
|
|||
STRING "\"\\" error: Missing trailing `"` symbol to terminate the string literal
|
|
@ -0,0 +1 @@
|
|||
STRING "\"\\\"" error: Missing trailing `"` symbol to terminate the string literal
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue