diff options
author | Aleksey Kladov <[email protected]> | 2018-08-07 12:56:33 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-07 12:57:19 +0100 |
commit | 9ef9ec9ec35372c372711878b7aaff94a1b39816 (patch) | |
tree | cef883cd7c7db1bb2f36aa398e7c3fe3395392b8 /tests | |
parent | 1a25cb0b1e0f81e7b76c0b41b94d18eca3bd3bfb (diff) |
Simplify tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/parser/inline/0062_deref_expr.rs | 3 | ||||
-rw-r--r-- | tests/data/parser/inline/0062_deref_expr.txt | 26 | ||||
-rw-r--r-- | tests/data/parser/inline/0066_not_expr.txt | 24 | ||||
-rw-r--r-- | tests/data/parser/inline/0074_unary_expr.rs (renamed from tests/data/parser/inline/0066_not_expr.rs) | 2 | ||||
-rw-r--r-- | tests/data/parser/inline/0074_unary_expr.txt | 44 | ||||
-rw-r--r-- | tests/data/parser/inline/0085_neg_expr.rs | 3 | ||||
-rw-r--r-- | tests/data/parser/inline/0085_neg_expr.txt | 24 |
7 files changed, 46 insertions, 80 deletions
diff --git a/tests/data/parser/inline/0062_deref_expr.rs b/tests/data/parser/inline/0062_deref_expr.rs deleted file mode 100644 index b1e35defc..000000000 --- a/tests/data/parser/inline/0062_deref_expr.rs +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | fn foo() { | ||
2 | **&1; | ||
3 | } | ||
diff --git a/tests/data/parser/inline/0062_deref_expr.txt b/tests/data/parser/inline/0062_deref_expr.txt deleted file mode 100644 index 71be78bc2..000000000 --- a/tests/data/parser/inline/0062_deref_expr.txt +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | FILE@[0; 23) | ||
2 | FN_ITEM@[0; 22) | ||
3 | FN_KW@[0; 2) | ||
4 | WHITESPACE@[2; 3) | ||
5 | NAME@[3; 6) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | PARAM_LIST@[6; 8) | ||
8 | L_PAREN@[6; 7) | ||
9 | R_PAREN@[7; 8) | ||
10 | WHITESPACE@[8; 9) | ||
11 | BLOCK_EXPR@[9; 22) | ||
12 | L_CURLY@[9; 10) | ||
13 | WHITESPACE@[10; 15) | ||
14 | EXPR_STMT@[15; 20) | ||
15 | PREFIX_EXPR@[15; 19) | ||
16 | STAR@[15; 16) | ||
17 | PREFIX_EXPR@[16; 19) | ||
18 | STAR@[16; 17) | ||
19 | REF_EXPR@[17; 19) | ||
20 | AMP@[17; 18) | ||
21 | LITERAL@[18; 19) | ||
22 | INT_NUMBER@[18; 19) "1" | ||
23 | SEMI@[19; 20) | ||
24 | WHITESPACE@[20; 21) | ||
25 | R_CURLY@[21; 22) | ||
26 | WHITESPACE@[22; 23) | ||
diff --git a/tests/data/parser/inline/0066_not_expr.txt b/tests/data/parser/inline/0066_not_expr.txt deleted file mode 100644 index 005a5bcf2..000000000 --- a/tests/data/parser/inline/0066_not_expr.txt +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | FILE@[0; 25) | ||
2 | FN_ITEM@[0; 24) | ||
3 | FN_KW@[0; 2) | ||
4 | WHITESPACE@[2; 3) | ||
5 | NAME@[3; 6) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | PARAM_LIST@[6; 8) | ||
8 | L_PAREN@[6; 7) | ||
9 | R_PAREN@[7; 8) | ||
10 | WHITESPACE@[8; 9) | ||
11 | BLOCK_EXPR@[9; 24) | ||
12 | L_CURLY@[9; 10) | ||
13 | WHITESPACE@[10; 15) | ||
14 | EXPR_STMT@[15; 22) | ||
15 | PREFIX_EXPR@[15; 21) | ||
16 | EXCL@[15; 16) | ||
17 | PREFIX_EXPR@[16; 21) | ||
18 | EXCL@[16; 17) | ||
19 | LITERAL@[17; 21) | ||
20 | TRUE_KW@[17; 21) | ||
21 | SEMI@[21; 22) | ||
22 | WHITESPACE@[22; 23) | ||
23 | R_CURLY@[23; 24) | ||
24 | WHITESPACE@[24; 25) | ||
diff --git a/tests/data/parser/inline/0066_not_expr.rs b/tests/data/parser/inline/0074_unary_expr.rs index 4c97fd9a6..f1c3f7118 100644 --- a/tests/data/parser/inline/0066_not_expr.rs +++ b/tests/data/parser/inline/0074_unary_expr.rs | |||
@@ -1,3 +1,5 @@ | |||
1 | fn foo() { | 1 | fn foo() { |
2 | **&1; | ||
2 | !!true; | 3 | !!true; |
4 | --1; | ||
3 | } | 5 | } |
diff --git a/tests/data/parser/inline/0074_unary_expr.txt b/tests/data/parser/inline/0074_unary_expr.txt new file mode 100644 index 000000000..072b805ad --- /dev/null +++ b/tests/data/parser/inline/0074_unary_expr.txt | |||
@@ -0,0 +1,44 @@ | |||
1 | FILE@[0; 44) | ||
2 | FN_ITEM@[0; 43) | ||
3 | FN_KW@[0; 2) | ||
4 | WHITESPACE@[2; 3) | ||
5 | NAME@[3; 6) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | PARAM_LIST@[6; 8) | ||
8 | L_PAREN@[6; 7) | ||
9 | R_PAREN@[7; 8) | ||
10 | WHITESPACE@[8; 9) | ||
11 | BLOCK_EXPR@[9; 43) | ||
12 | L_CURLY@[9; 10) | ||
13 | WHITESPACE@[10; 15) | ||
14 | EXPR_STMT@[15; 20) | ||
15 | PREFIX_EXPR@[15; 19) | ||
16 | STAR@[15; 16) | ||
17 | PREFIX_EXPR@[16; 19) | ||
18 | STAR@[16; 17) | ||
19 | REF_EXPR@[17; 19) | ||
20 | AMP@[17; 18) | ||
21 | LITERAL@[18; 19) | ||
22 | INT_NUMBER@[18; 19) "1" | ||
23 | SEMI@[19; 20) | ||
24 | WHITESPACE@[20; 25) | ||
25 | EXPR_STMT@[25; 32) | ||
26 | PREFIX_EXPR@[25; 31) | ||
27 | EXCL@[25; 26) | ||
28 | PREFIX_EXPR@[26; 31) | ||
29 | EXCL@[26; 27) | ||
30 | LITERAL@[27; 31) | ||
31 | TRUE_KW@[27; 31) | ||
32 | SEMI@[31; 32) | ||
33 | WHITESPACE@[32; 37) | ||
34 | EXPR_STMT@[37; 41) | ||
35 | PREFIX_EXPR@[37; 40) | ||
36 | MINUS@[37; 38) | ||
37 | PREFIX_EXPR@[38; 40) | ||
38 | MINUS@[38; 39) | ||
39 | LITERAL@[39; 40) | ||
40 | INT_NUMBER@[39; 40) "1" | ||
41 | SEMI@[40; 41) | ||
42 | WHITESPACE@[41; 42) | ||
43 | R_CURLY@[42; 43) | ||
44 | WHITESPACE@[43; 44) | ||
diff --git a/tests/data/parser/inline/0085_neg_expr.rs b/tests/data/parser/inline/0085_neg_expr.rs deleted file mode 100644 index 45149d222..000000000 --- a/tests/data/parser/inline/0085_neg_expr.rs +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | fn foo() { | ||
2 | --1; | ||
3 | } | ||
diff --git a/tests/data/parser/inline/0085_neg_expr.txt b/tests/data/parser/inline/0085_neg_expr.txt deleted file mode 100644 index 65855555c..000000000 --- a/tests/data/parser/inline/0085_neg_expr.txt +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | FILE@[0; 22) | ||
2 | FN_ITEM@[0; 21) | ||
3 | FN_KW@[0; 2) | ||
4 | WHITESPACE@[2; 3) | ||
5 | NAME@[3; 6) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | PARAM_LIST@[6; 8) | ||
8 | L_PAREN@[6; 7) | ||
9 | R_PAREN@[7; 8) | ||
10 | WHITESPACE@[8; 9) | ||
11 | BLOCK_EXPR@[9; 21) | ||
12 | L_CURLY@[9; 10) | ||
13 | WHITESPACE@[10; 15) | ||
14 | EXPR_STMT@[15; 19) | ||
15 | PREFIX_EXPR@[15; 18) | ||
16 | MINUS@[15; 16) | ||
17 | PREFIX_EXPR@[16; 18) | ||
18 | MINUS@[16; 17) | ||
19 | LITERAL@[17; 18) | ||
20 | INT_NUMBER@[17; 18) "1" | ||
21 | SEMI@[18; 19) | ||
22 | WHITESPACE@[19; 20) | ||
23 | R_CURLY@[20; 21) | ||
24 | WHITESPACE@[21; 22) | ||