diff options
author | Aleksey Kladov <[email protected]> | 2018-08-29 09:15:51 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-29 09:15:51 +0100 |
commit | 754c034a8119e2406c614d5536ecada1e3c8cd83 (patch) | |
tree | 070955f2417a96d595705d38e0126b3e10756a1d /crates/libsyntax2/tests | |
parent | 15f15d92eb4d6ab791047eefbd6dd9b2baba1140 (diff) |
fix tests
Diffstat (limited to 'crates/libsyntax2/tests')
-rw-r--r-- | crates/libsyntax2/tests/data/parser/err/0010_unsafe_lambda_block.txt | 32 | ||||
-rw-r--r-- | crates/libsyntax2/tests/data/parser/inline/0066_lambda_expr.txt | 15 |
2 files changed, 23 insertions, 24 deletions
diff --git a/crates/libsyntax2/tests/data/parser/err/0010_unsafe_lambda_block.txt b/crates/libsyntax2/tests/data/parser/err/0010_unsafe_lambda_block.txt index edd801599..38667e030 100644 --- a/crates/libsyntax2/tests/data/parser/err/0010_unsafe_lambda_block.txt +++ b/crates/libsyntax2/tests/data/parser/err/0010_unsafe_lambda_block.txt | |||
@@ -11,8 +11,8 @@ ROOT@[0; 42) | |||
11 | BLOCK@[10; 41) | 11 | BLOCK@[10; 41) |
12 | L_CURLY@[10; 11) | 12 | L_CURLY@[10; 11) |
13 | WHITESPACE@[11; 16) | 13 | WHITESPACE@[11; 16) |
14 | EXPR_STMT@[16; 24) | 14 | EXPR_STMT@[16; 39) |
15 | LAMBDA_EXPR@[16; 24) | 15 | LAMBDA_EXPR@[16; 38) |
16 | PARAM_LIST@[16; 18) | 16 | PARAM_LIST@[16; 18) |
17 | PIPE@[16; 17) | 17 | PIPE@[16; 17) |
18 | PIPE@[17; 18) | 18 | PIPE@[17; 18) |
@@ -23,21 +23,19 @@ ROOT@[0; 42) | |||
23 | TUPLE_TYPE@[22; 24) | 23 | TUPLE_TYPE@[22; 24) |
24 | L_PAREN@[22; 23) | 24 | L_PAREN@[22; 23) |
25 | R_PAREN@[23; 24) | 25 | R_PAREN@[23; 24) |
26 | err: `expected a block` | 26 | err: `expected `{`` |
27 | err: `expected SEMI` | 27 | WHITESPACE@[24; 25) |
28 | WHITESPACE@[24; 25) | 28 | BLOCK_EXPR@[25; 38) |
29 | EXPR_STMT@[25; 39) | 29 | UNSAFE_KW@[25; 31) |
30 | BLOCK_EXPR@[25; 38) | 30 | WHITESPACE@[31; 32) |
31 | UNSAFE_KW@[25; 31) | 31 | BLOCK@[32; 38) |
32 | WHITESPACE@[31; 32) | 32 | L_CURLY@[32; 33) |
33 | BLOCK@[32; 38) | 33 | WHITESPACE@[33; 34) |
34 | L_CURLY@[32; 33) | 34 | TUPLE_EXPR@[34; 36) |
35 | WHITESPACE@[33; 34) | 35 | L_PAREN@[34; 35) |
36 | TUPLE_EXPR@[34; 36) | 36 | R_PAREN@[35; 36) |
37 | L_PAREN@[34; 35) | 37 | WHITESPACE@[36; 37) |
38 | R_PAREN@[35; 36) | 38 | R_CURLY@[37; 38) |
39 | WHITESPACE@[36; 37) | ||
40 | R_CURLY@[37; 38) | ||
41 | SEMI@[38; 39) | 39 | SEMI@[38; 39) |
42 | WHITESPACE@[39; 40) | 40 | WHITESPACE@[39; 40) |
43 | R_CURLY@[40; 41) | 41 | R_CURLY@[40; 41) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0066_lambda_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0066_lambda_expr.txt index 6f8304db3..82aaf3897 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0066_lambda_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0066_lambda_expr.txt | |||
@@ -37,13 +37,14 @@ ROOT@[0; 79) | |||
37 | NAME_REF@[32; 35) | 37 | NAME_REF@[32; 35) |
38 | IDENT@[32; 35) "i32" | 38 | IDENT@[32; 35) "i32" |
39 | WHITESPACE@[35; 36) | 39 | WHITESPACE@[35; 36) |
40 | BLOCK@[36; 42) | 40 | BLOCK_EXPR@[36; 42) |
41 | L_CURLY@[36; 37) | 41 | BLOCK@[36; 42) |
42 | WHITESPACE@[37; 38) | 42 | L_CURLY@[36; 37) |
43 | LITERAL@[38; 40) | 43 | WHITESPACE@[37; 38) |
44 | INT_NUMBER@[38; 40) "92" | 44 | LITERAL@[38; 40) |
45 | WHITESPACE@[40; 41) | 45 | INT_NUMBER@[38; 40) "92" |
46 | R_CURLY@[41; 42) | 46 | WHITESPACE@[40; 41) |
47 | R_CURLY@[41; 42) | ||
47 | SEMI@[42; 43) | 48 | SEMI@[42; 43) |
48 | WHITESPACE@[43; 48) | 49 | WHITESPACE@[43; 48) |
49 | EXPR_STMT@[48; 54) | 50 | EXPR_STMT@[48; 54) |