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/0004_use_path_bad_segment.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 crates/ra_syntax/test_data/parser/err/0004_use_path_bad_segment.txt (limited to 'crates/ra_syntax/test_data/parser/err/0004_use_path_bad_segment.txt') diff --git a/crates/ra_syntax/test_data/parser/err/0004_use_path_bad_segment.txt b/crates/ra_syntax/test_data/parser/err/0004_use_path_bad_segment.txt new file mode 100644 index 000000000..5210a884d --- /dev/null +++ b/crates/ra_syntax/test_data/parser/err/0004_use_path_bad_segment.txt @@ -0,0 +1,16 @@ +SOURCE_FILE@[0; 12) + USE_ITEM@[0; 12) + USE_KW@[0; 3) "use" + WHITESPACE@[3; 4) " " + USE_TREE@[4; 11) + PATH@[4; 11) + PATH@[4; 7) + PATH_SEGMENT@[4; 7) + NAME_REF@[4; 7) + IDENT@[4; 7) "foo" + COLONCOLON@[7; 9) "::" + PATH_SEGMENT@[9; 11) + ERROR@[9; 11) + INT_NUMBER@[9; 11) "92" + SEMI@[11; 12) ";" +error 9: expected identifier -- cgit v1.2.3