From ede506e0314a0560710cad291c1f91d939068cec Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 7 Aug 2018 14:58:08 +0300 Subject: Rename tests --- tests/data/parser/inline/0079_cast_expr.rs | 3 +++ tests/data/parser/inline/0079_cast_expr.txt | 29 +++++++++++++++++++++ tests/data/parser/inline/0082_tuple_pat.rs | 3 +++ tests/data/parser/inline/0082_tuple_pat.txt | 40 +++++++++++++++++++++++++++++ tests/data/parser/inline/0086_tuple_pat.rs | 3 --- tests/data/parser/inline/0086_tuple_pat.txt | 40 ----------------------------- tests/data/parser/inline/0087_cast_expr.rs | 3 --- tests/data/parser/inline/0087_cast_expr.txt | 29 --------------------- 8 files changed, 75 insertions(+), 75 deletions(-) create mode 100644 tests/data/parser/inline/0079_cast_expr.rs create mode 100644 tests/data/parser/inline/0079_cast_expr.txt create mode 100644 tests/data/parser/inline/0082_tuple_pat.rs create mode 100644 tests/data/parser/inline/0082_tuple_pat.txt delete mode 100644 tests/data/parser/inline/0086_tuple_pat.rs delete mode 100644 tests/data/parser/inline/0086_tuple_pat.txt delete mode 100644 tests/data/parser/inline/0087_cast_expr.rs delete mode 100644 tests/data/parser/inline/0087_cast_expr.txt (limited to 'tests/data') diff --git a/tests/data/parser/inline/0079_cast_expr.rs b/tests/data/parser/inline/0079_cast_expr.rs new file mode 100644 index 000000000..3e53d56d6 --- /dev/null +++ b/tests/data/parser/inline/0079_cast_expr.rs @@ -0,0 +1,3 @@ +fn foo() { + 82 as i32; +} diff --git a/tests/data/parser/inline/0079_cast_expr.txt b/tests/data/parser/inline/0079_cast_expr.txt new file mode 100644 index 000000000..78210f0d5 --- /dev/null +++ b/tests/data/parser/inline/0079_cast_expr.txt @@ -0,0 +1,29 @@ +FILE@[0; 28) + FN_ITEM@[0; 27) + FN_KW@[0; 2) + WHITESPACE@[2; 3) + NAME@[3; 6) + IDENT@[3; 6) "foo" + PARAM_LIST@[6; 8) + L_PAREN@[6; 7) + R_PAREN@[7; 8) + WHITESPACE@[8; 9) + BLOCK_EXPR@[9; 27) + L_CURLY@[9; 10) + WHITESPACE@[10; 15) + EXPR_STMT@[15; 25) + CAST_EXPR@[15; 24) + LITERAL@[15; 17) + INT_NUMBER@[15; 17) "82" + WHITESPACE@[17; 18) + AS_KW@[18; 20) + WHITESPACE@[20; 21) + PATH_TYPE@[21; 24) + PATH@[21; 24) + PATH_SEGMENT@[21; 24) + NAME_REF@[21; 24) + IDENT@[21; 24) "i32" + SEMI@[24; 25) + WHITESPACE@[25; 26) + R_CURLY@[26; 27) + WHITESPACE@[27; 28) diff --git a/tests/data/parser/inline/0082_tuple_pat.rs b/tests/data/parser/inline/0082_tuple_pat.rs new file mode 100644 index 000000000..f785acd36 --- /dev/null +++ b/tests/data/parser/inline/0082_tuple_pat.rs @@ -0,0 +1,3 @@ +fn main() { + let (a, b, ..) = (); +} diff --git a/tests/data/parser/inline/0082_tuple_pat.txt b/tests/data/parser/inline/0082_tuple_pat.txt new file mode 100644 index 000000000..6c2f25d36 --- /dev/null +++ b/tests/data/parser/inline/0082_tuple_pat.txt @@ -0,0 +1,40 @@ +FILE@[0; 39) + FN_ITEM@[0; 38) + FN_KW@[0; 2) + WHITESPACE@[2; 3) + NAME@[3; 7) + IDENT@[3; 7) "main" + PARAM_LIST@[7; 9) + L_PAREN@[7; 8) + R_PAREN@[8; 9) + WHITESPACE@[9; 10) + BLOCK_EXPR@[10; 38) + L_CURLY@[10; 11) + WHITESPACE@[11; 16) + LET_STMT@[16; 36) + LET_KW@[16; 19) + WHITESPACE@[19; 20) + TUPLE_PAT@[20; 30) + L_PAREN@[20; 21) + BIND_PAT@[21; 22) + NAME@[21; 22) + IDENT@[21; 22) "a" + COMMA@[22; 23) + WHITESPACE@[23; 24) + BIND_PAT@[24; 25) + NAME@[24; 25) + IDENT@[24; 25) "b" + COMMA@[25; 26) + WHITESPACE@[26; 27) + DOTDOT@[27; 29) + R_PAREN@[29; 30) + WHITESPACE@[30; 31) + EQ@[31; 32) + WHITESPACE@[32; 33) + TUPLE_EXPR@[33; 35) + L_PAREN@[33; 34) + R_PAREN@[34; 35) + SEMI@[35; 36) + WHITESPACE@[36; 37) + R_CURLY@[37; 38) + WHITESPACE@[38; 39) diff --git a/tests/data/parser/inline/0086_tuple_pat.rs b/tests/data/parser/inline/0086_tuple_pat.rs deleted file mode 100644 index f785acd36..000000000 --- a/tests/data/parser/inline/0086_tuple_pat.rs +++ /dev/null @@ -1,3 +0,0 @@ -fn main() { - let (a, b, ..) = (); -} diff --git a/tests/data/parser/inline/0086_tuple_pat.txt b/tests/data/parser/inline/0086_tuple_pat.txt deleted file mode 100644 index 6c2f25d36..000000000 --- a/tests/data/parser/inline/0086_tuple_pat.txt +++ /dev/null @@ -1,40 +0,0 @@ -FILE@[0; 39) - FN_ITEM@[0; 38) - FN_KW@[0; 2) - WHITESPACE@[2; 3) - NAME@[3; 7) - IDENT@[3; 7) "main" - PARAM_LIST@[7; 9) - L_PAREN@[7; 8) - R_PAREN@[8; 9) - WHITESPACE@[9; 10) - BLOCK_EXPR@[10; 38) - L_CURLY@[10; 11) - WHITESPACE@[11; 16) - LET_STMT@[16; 36) - LET_KW@[16; 19) - WHITESPACE@[19; 20) - TUPLE_PAT@[20; 30) - L_PAREN@[20; 21) - BIND_PAT@[21; 22) - NAME@[21; 22) - IDENT@[21; 22) "a" - COMMA@[22; 23) - WHITESPACE@[23; 24) - BIND_PAT@[24; 25) - NAME@[24; 25) - IDENT@[24; 25) "b" - COMMA@[25; 26) - WHITESPACE@[26; 27) - DOTDOT@[27; 29) - R_PAREN@[29; 30) - WHITESPACE@[30; 31) - EQ@[31; 32) - WHITESPACE@[32; 33) - TUPLE_EXPR@[33; 35) - L_PAREN@[33; 34) - R_PAREN@[34; 35) - SEMI@[35; 36) - WHITESPACE@[36; 37) - R_CURLY@[37; 38) - WHITESPACE@[38; 39) diff --git a/tests/data/parser/inline/0087_cast_expr.rs b/tests/data/parser/inline/0087_cast_expr.rs deleted file mode 100644 index 3e53d56d6..000000000 --- a/tests/data/parser/inline/0087_cast_expr.rs +++ /dev/null @@ -1,3 +0,0 @@ -fn foo() { - 82 as i32; -} diff --git a/tests/data/parser/inline/0087_cast_expr.txt b/tests/data/parser/inline/0087_cast_expr.txt deleted file mode 100644 index 78210f0d5..000000000 --- a/tests/data/parser/inline/0087_cast_expr.txt +++ /dev/null @@ -1,29 +0,0 @@ -FILE@[0; 28) - FN_ITEM@[0; 27) - FN_KW@[0; 2) - WHITESPACE@[2; 3) - NAME@[3; 6) - IDENT@[3; 6) "foo" - PARAM_LIST@[6; 8) - L_PAREN@[6; 7) - R_PAREN@[7; 8) - WHITESPACE@[8; 9) - BLOCK_EXPR@[9; 27) - L_CURLY@[9; 10) - WHITESPACE@[10; 15) - EXPR_STMT@[15; 25) - CAST_EXPR@[15; 24) - LITERAL@[15; 17) - INT_NUMBER@[15; 17) "82" - WHITESPACE@[17; 18) - AS_KW@[18; 20) - WHITESPACE@[20; 21) - PATH_TYPE@[21; 24) - PATH@[21; 24) - PATH_SEGMENT@[21; 24) - NAME_REF@[21; 24) - IDENT@[21; 24) "i32" - SEMI@[24; 25) - WHITESPACE@[25; 26) - R_CURLY@[26; 27) - WHITESPACE@[27; 28) -- cgit v1.2.3