aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2017-12-31 12:29:09 +0000
committerAleksey Kladov <[email protected]>2017-12-31 12:29:09 +0000
commita071e09412d602d184a70b4b1fc0158fafd3e38e (patch)
treef857392d2f88233c14f11f8206647a23c81dafe3 /tests
parentd76d7d2a7426e34b0fb358029cbaa2d71f0118e8 (diff)
Lexer: more symbols
Diffstat (limited to 'tests')
-rw-r--r--tests/data/lexer/0004_numbers.txt4
-rw-r--r--tests/data/lexer/0005_symbols.rs5
-rw-r--r--tests/data/lexer/0005_symbols.txt19
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 "("
47R_PAREN 1 ")" 47R_PAREN 1 ")"
48WHITESPACE 1 "\n" 48WHITESPACE 1 "\n"
49INT_NUMBER 2 "0e" 49INT_NUMBER 2 "0e"
50ERROR 1 "+" 50PLUS 1 "+"
51INT_NUMBER 1 "1" 51INT_NUMBER 1 "1"
52WHITESPACE 1 "\n" 52WHITESPACE 1 "\n"
53INT_NUMBER 1 "0" 53INT_NUMBER 1 "0"
54DOT 1 "." 54DOT 1 "."
55IDENT 1 "e" 55IDENT 1 "e"
56ERROR 1 "+" 56PLUS 1 "+"
57INT_NUMBER 1 "1" 57INT_NUMBER 1 "1"
58WHITESPACE 1 "\n" 58WHITESPACE 1 "\n"
59FLOAT_NUMBER 6 "0.0E-2" 59FLOAT_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 " "
27QUESTION 1 "?" 27QUESTION 1 "?"
28WHITESPACE 1 " " 28WHITESPACE 1 " "
29DOLLAR 1 "$" 29DOLLAR 1 "$"
30WHITESPACE 1 " "
31AMPERSAND 1 "&"
32WHITESPACE 1 " "
33PIPE 1 "|"
34WHITESPACE 1 " "
35PLUS 1 "+"
36WHITESPACE 1 " "
37STAR 1 "*"
38WHITESPACE 1 " "
39SLASH 1 "/"
40WHITESPACE 1 " "
41CARET 1 "^"
42WHITESPACE 1 " "
43PERCENT 1 "%"
30WHITESPACE 1 "\n" 44WHITESPACE 1 "\n"
31DOT 1 "." 45DOT 1 "."
32WHITESPACE 1 " " 46WHITESPACE 1 " "
@@ -47,3 +61,8 @@ WHITESPACE 1 "\n"
47NOT 1 "!" 61NOT 1 "!"
48WHITESPACE 1 " " 62WHITESPACE 1 " "
49NEQ 2 "!=" 63NEQ 2 "!="
64WHITESPACE 1 "\n"
65MINUS 1 "-"
66WHITESPACE 1 " "
67THIN_ARROW 2 "->"
68WHITESPACE 1 "\n"