From a1c187eef3ba08076aedb5154929f7eda8d1b424 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 12 Aug 2020 18:26:51 +0200 Subject: Rename ra_syntax -> syntax --- .../test_data/lexer/err/0056_empty_exponent.txt | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 crates/syntax/test_data/lexer/err/0056_empty_exponent.txt (limited to 'crates/syntax/test_data/lexer/err/0056_empty_exponent.txt') diff --git a/crates/syntax/test_data/lexer/err/0056_empty_exponent.txt b/crates/syntax/test_data/lexer/err/0056_empty_exponent.txt new file mode 100644 index 000000000..6a645a6a4 --- /dev/null +++ b/crates/syntax/test_data/lexer/err/0056_empty_exponent.txt @@ -0,0 +1,62 @@ +FLOAT_NUMBER 2 "0e" +WHITESPACE 1 "\n" +FLOAT_NUMBER 2 "0E" +WHITESPACE 2 "\n\n" +FLOAT_NUMBER 4 "42e+" +WHITESPACE 1 "\n" +FLOAT_NUMBER 4 "42e-" +WHITESPACE 1 "\n" +FLOAT_NUMBER 4 "42E+" +WHITESPACE 1 "\n" +FLOAT_NUMBER 4 "42E-" +WHITESPACE 2 "\n\n" +INT_NUMBER 2 "42" +DOT 1 "." +IDENT 1 "e" +PLUS 1 "+" +WHITESPACE 1 "\n" +INT_NUMBER 2 "42" +DOT 1 "." +IDENT 1 "e" +MINUS 1 "-" +WHITESPACE 1 "\n" +INT_NUMBER 2 "42" +DOT 1 "." +IDENT 1 "E" +PLUS 1 "+" +WHITESPACE 1 "\n" +INT_NUMBER 2 "42" +DOT 1 "." +IDENT 1 "E" +MINUS 1 "-" +WHITESPACE 2 "\n\n" +FLOAT_NUMBER 6 "42.2e+" +WHITESPACE 1 "\n" +FLOAT_NUMBER 6 "42.2e-" +WHITESPACE 1 "\n" +FLOAT_NUMBER 6 "42.2E+" +WHITESPACE 1 "\n" +FLOAT_NUMBER 6 "42.2E-" +WHITESPACE 2 "\n\n" +FLOAT_NUMBER 9 "42.2e+f32" +WHITESPACE 1 "\n" +FLOAT_NUMBER 9 "42.2e-f32" +WHITESPACE 1 "\n" +FLOAT_NUMBER 9 "42.2E+f32" +WHITESPACE 1 "\n" +FLOAT_NUMBER 9 "42.2E-f32" +WHITESPACE 1 "\n" +> error0..2 token("0e") msg(Missing digits after the exponent symbol) +> error3..5 token("0E") msg(Missing digits after the exponent symbol) +> error7..11 token("42e+") msg(Missing digits after the exponent symbol) +> error12..16 token("42e-") msg(Missing digits after the exponent symbol) +> error17..21 token("42E+") msg(Missing digits after the exponent symbol) +> error22..26 token("42E-") msg(Missing digits after the exponent symbol) +> error53..59 token("42.2e+") msg(Missing digits after the exponent symbol) +> error60..66 token("42.2e-") msg(Missing digits after the exponent symbol) +> error67..73 token("42.2E+") msg(Missing digits after the exponent symbol) +> error74..80 token("42.2E-") msg(Missing digits after the exponent symbol) +> error82..91 token("42.2e+f32") msg(Missing digits after the exponent symbol) +> error92..101 token("42.2e-f32") msg(Missing digits after the exponent symbol) +> error102..111 token("42.2E+f32") msg(Missing digits after the exponent symbol) +> error112..121 token("42.2E-f32") msg(Missing digits after the exponent symbol) -- cgit v1.2.3