From 459241f272748ff2e57b2c7e84f5a04f78d67edb Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 24 Jul 2019 12:38:21 +0300 Subject: move syntax tests to unit tests --- .../test_data/parser/err/0015_curly_in_params.txt | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 crates/ra_syntax/test_data/parser/err/0015_curly_in_params.txt (limited to 'crates/ra_syntax/test_data/parser/err/0015_curly_in_params.txt') diff --git a/crates/ra_syntax/test_data/parser/err/0015_curly_in_params.txt b/crates/ra_syntax/test_data/parser/err/0015_curly_in_params.txt new file mode 100644 index 000000000..23ca0c446 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/err/0015_curly_in_params.txt @@ -0,0 +1,24 @@ +SOURCE_FILE@[0; 14) + FN_DEF@[0; 7) + FN_KW@[0; 2) "fn" + WHITESPACE@[2; 3) " " + NAME@[3; 6) + IDENT@[3; 6) "foo" + PARAM_LIST@[6; 7) + L_PAREN@[6; 7) "(" + ERROR@[7; 8) + R_CURLY@[7; 8) "}" + ERROR@[8; 9) + R_PAREN@[8; 9) ")" + WHITESPACE@[9; 10) " " + ERROR@[10; 13) + L_CURLY@[10; 11) "{" + WHITESPACE@[11; 12) "\n" + R_CURLY@[12; 13) "}" + WHITESPACE@[13; 14) "\n" +error 7: expected value parameter +error 7: expected R_PAREN +error 7: expected a block +error 7: unmatched `}` +error 8: expected an item +error 10: expected an item -- cgit v1.2.3