From 7c67612b8a894187fa3b64725531a5459f9211bf Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 10 Aug 2018 22:33:29 +0300 Subject: organizize --- tests/data/lexer/00012_block_comment.rs | 4 -- tests/data/lexer/00012_block_comment.txt | 7 ---- tests/data/lexer/0001_hello.rs | 1 - tests/data/lexer/0001_hello.txt | 3 -- tests/data/lexer/0002_whitespace.rs | 4 -- tests/data/lexer/0002_whitespace.txt | 12 ------ tests/data/lexer/0003_ident.rs | 1 - tests/data/lexer/0003_ident.txt | 14 ------- tests/data/lexer/0004_numbers.rs | 9 ----- tests/data/lexer/0004_numbers.txt | 67 ------------------------------- tests/data/lexer/0005_symbols.rs | 6 --- tests/data/lexer/0005_symbols.txt | 68 -------------------------------- tests/data/lexer/0006_chars.rs | 1 - tests/data/lexer/0006_chars.txt | 6 --- tests/data/lexer/0007_lifetimes.rs | 1 - tests/data/lexer/0007_lifetimes.txt | 8 ---- tests/data/lexer/0008_byte_strings.rs | 2 - tests/data/lexer/0008_byte_strings.txt | 14 ------- tests/data/lexer/0009_strings.rs | 1 - tests/data/lexer/0009_strings.txt | 4 -- tests/data/lexer/0010_comments.rs | 3 -- tests/data/lexer/0010_comments.txt | 6 --- tests/data/lexer/0011_keywords.rs | 3 -- tests/data/lexer/0011_keywords.txt | 62 ----------------------------- 24 files changed, 307 deletions(-) delete mode 100644 tests/data/lexer/00012_block_comment.rs delete mode 100644 tests/data/lexer/00012_block_comment.txt delete mode 100644 tests/data/lexer/0001_hello.rs delete mode 100644 tests/data/lexer/0001_hello.txt delete mode 100644 tests/data/lexer/0002_whitespace.rs delete mode 100644 tests/data/lexer/0002_whitespace.txt delete mode 100644 tests/data/lexer/0003_ident.rs delete mode 100644 tests/data/lexer/0003_ident.txt delete mode 100644 tests/data/lexer/0004_numbers.rs delete mode 100644 tests/data/lexer/0004_numbers.txt delete mode 100644 tests/data/lexer/0005_symbols.rs delete mode 100644 tests/data/lexer/0005_symbols.txt delete mode 100644 tests/data/lexer/0006_chars.rs delete mode 100644 tests/data/lexer/0006_chars.txt delete mode 100644 tests/data/lexer/0007_lifetimes.rs delete mode 100644 tests/data/lexer/0007_lifetimes.txt delete mode 100644 tests/data/lexer/0008_byte_strings.rs delete mode 100644 tests/data/lexer/0008_byte_strings.txt delete mode 100644 tests/data/lexer/0009_strings.rs delete mode 100644 tests/data/lexer/0009_strings.txt delete mode 100644 tests/data/lexer/0010_comments.rs delete mode 100644 tests/data/lexer/0010_comments.txt delete mode 100644 tests/data/lexer/0011_keywords.rs delete mode 100644 tests/data/lexer/0011_keywords.txt (limited to 'tests/data/lexer') diff --git a/tests/data/lexer/00012_block_comment.rs b/tests/data/lexer/00012_block_comment.rs deleted file mode 100644 index 708aac197..000000000 --- a/tests/data/lexer/00012_block_comment.rs +++ /dev/null @@ -1,4 +0,0 @@ -/* */ -/**/ -/* /* */ */ -/* diff --git a/tests/data/lexer/00012_block_comment.txt b/tests/data/lexer/00012_block_comment.txt deleted file mode 100644 index 9958b2518..000000000 --- a/tests/data/lexer/00012_block_comment.txt +++ /dev/null @@ -1,7 +0,0 @@ -COMMENT 5 "/* */" -WHITESPACE 1 "\n" -COMMENT 4 "/**/" -WHITESPACE 1 "\n" -COMMENT 11 "/* /* */ */" -WHITESPACE 1 "\n" -COMMENT 3 "/*\n" diff --git a/tests/data/lexer/0001_hello.rs b/tests/data/lexer/0001_hello.rs deleted file mode 100644 index 95d09f2b1..000000000 --- a/tests/data/lexer/0001_hello.rs +++ /dev/null @@ -1 +0,0 @@ -hello world \ No newline at end of file diff --git a/tests/data/lexer/0001_hello.txt b/tests/data/lexer/0001_hello.txt deleted file mode 100644 index 27a5940a9..000000000 --- a/tests/data/lexer/0001_hello.txt +++ /dev/null @@ -1,3 +0,0 @@ -IDENT 5 "hello" -WHITESPACE 1 " " -IDENT 5 "world" diff --git a/tests/data/lexer/0002_whitespace.rs b/tests/data/lexer/0002_whitespace.rs deleted file mode 100644 index 08fce1418..000000000 --- a/tests/data/lexer/0002_whitespace.rs +++ /dev/null @@ -1,4 +0,0 @@ -a b c -d - -e f diff --git a/tests/data/lexer/0002_whitespace.txt b/tests/data/lexer/0002_whitespace.txt deleted file mode 100644 index 01d260918..000000000 --- a/tests/data/lexer/0002_whitespace.txt +++ /dev/null @@ -1,12 +0,0 @@ -IDENT 1 "a" -WHITESPACE 1 " " -IDENT 1 "b" -WHITESPACE 2 " " -IDENT 1 "c" -WHITESPACE 1 "\n" -IDENT 1 "d" -WHITESPACE 2 "\n\n" -IDENT 1 "e" -WHITESPACE 1 "\t" -IDENT 1 "f" -WHITESPACE 1 "\n" diff --git a/tests/data/lexer/0003_ident.rs b/tests/data/lexer/0003_ident.rs deleted file mode 100644 index c05c9c009..000000000 --- a/tests/data/lexer/0003_ident.rs +++ /dev/null @@ -1 +0,0 @@ -foo foo_ _foo _ __ x привет diff --git a/tests/data/lexer/0003_ident.txt b/tests/data/lexer/0003_ident.txt deleted file mode 100644 index 4a0d5c053..000000000 --- a/tests/data/lexer/0003_ident.txt +++ /dev/null @@ -1,14 +0,0 @@ -IDENT 3 "foo" -WHITESPACE 1 " " -IDENT 4 "foo_" -WHITESPACE 1 " " -IDENT 4 "_foo" -WHITESPACE 1 " " -UNDERSCORE 1 "_" -WHITESPACE 1 " " -IDENT 2 "__" -WHITESPACE 1 " " -IDENT 1 "x" -WHITESPACE 1 " " -IDENT 12 "привет" -WHITESPACE 1 "\n" diff --git a/tests/data/lexer/0004_numbers.rs b/tests/data/lexer/0004_numbers.rs deleted file mode 100644 index dc974b553..000000000 --- a/tests/data/lexer/0004_numbers.rs +++ /dev/null @@ -1,9 +0,0 @@ -0 0b 0o 0x 00 0_ 0. 0e 0E 0z -01790 0b1790 0o1790 0x1790aAbBcCdDeEfF 001279 0_1279 0.1279 0e1279 0E1279 -0..2 -0.foo() -0e+1 -0.e+1 -0.0E-2 -0___0.10000____0000e+111__ -1i64 92.0f32 11__s \ No newline at end of file diff --git a/tests/data/lexer/0004_numbers.txt b/tests/data/lexer/0004_numbers.txt deleted file mode 100644 index 4b5fd9f71..000000000 --- a/tests/data/lexer/0004_numbers.txt +++ /dev/null @@ -1,67 +0,0 @@ -INT_NUMBER 1 "0" -WHITESPACE 1 " " -INT_NUMBER 2 "0b" -WHITESPACE 1 " " -INT_NUMBER 2 "0o" -WHITESPACE 1 " " -INT_NUMBER 2 "0x" -WHITESPACE 1 " " -INT_NUMBER 2 "00" -WHITESPACE 1 " " -INT_NUMBER 2 "0_" -WHITESPACE 1 " " -FLOAT_NUMBER 2 "0." -WHITESPACE 1 " " -INT_NUMBER 2 "0e" -WHITESPACE 1 " " -INT_NUMBER 2 "0E" -WHITESPACE 1 " " -INT_NUMBER 2 "0z" -WHITESPACE 1 "\n" -INT_NUMBER 5 "01790" -WHITESPACE 1 " " -INT_NUMBER 6 "0b1790" -WHITESPACE 1 " " -INT_NUMBER 6 "0o1790" -WHITESPACE 1 " " -INT_NUMBER 18 "0x1790aAbBcCdDeEfF" -WHITESPACE 1 " " -INT_NUMBER 6 "001279" -WHITESPACE 1 " " -INT_NUMBER 6 "0_1279" -WHITESPACE 1 " " -FLOAT_NUMBER 6 "0.1279" -WHITESPACE 1 " " -INT_NUMBER 6 "0e1279" -WHITESPACE 1 " " -INT_NUMBER 6 "0E1279" -WHITESPACE 1 "\n" -INT_NUMBER 1 "0" -DOTDOT 2 ".." -INT_NUMBER 1 "2" -WHITESPACE 1 "\n" -INT_NUMBER 1 "0" -DOT 1 "." -IDENT 3 "foo" -L_PAREN 1 "(" -R_PAREN 1 ")" -WHITESPACE 1 "\n" -INT_NUMBER 2 "0e" -PLUS 1 "+" -INT_NUMBER 1 "1" -WHITESPACE 1 "\n" -INT_NUMBER 1 "0" -DOT 1 "." -IDENT 1 "e" -PLUS 1 "+" -INT_NUMBER 1 "1" -WHITESPACE 1 "\n" -FLOAT_NUMBER 6 "0.0E-2" -WHITESPACE 1 "\n" -FLOAT_NUMBER 26 "0___0.10000____0000e+111__" -WHITESPACE 1 "\n" -INT_NUMBER 4 "1i64" -WHITESPACE 1 " " -FLOAT_NUMBER 7 "92.0f32" -WHITESPACE 1 " " -INT_NUMBER 5 "11__s" diff --git a/tests/data/lexer/0005_symbols.rs b/tests/data/lexer/0005_symbols.rs deleted file mode 100644 index 487569b5a..000000000 --- a/tests/data/lexer/0005_symbols.rs +++ /dev/null @@ -1,6 +0,0 @@ -; , ( ) { } [ ] < > @ # ~ ? $ & | + * / ^ % -. .. ... ..= -: :: -= => -! != -- -> diff --git a/tests/data/lexer/0005_symbols.txt b/tests/data/lexer/0005_symbols.txt deleted file mode 100644 index a6bc83a6f..000000000 --- a/tests/data/lexer/0005_symbols.txt +++ /dev/null @@ -1,68 +0,0 @@ -SEMI 1 ";" -WHITESPACE 1 " " -COMMA 1 "," -WHITESPACE 1 " " -L_PAREN 1 "(" -WHITESPACE 1 " " -R_PAREN 1 ")" -WHITESPACE 1 " " -L_CURLY 1 "{" -WHITESPACE 1 " " -R_CURLY 1 "}" -WHITESPACE 1 " " -L_BRACK 1 "[" -WHITESPACE 1 " " -R_BRACK 1 "]" -WHITESPACE 1 " " -L_ANGLE 1 "<" -WHITESPACE 1 " " -R_ANGLE 1 ">" -WHITESPACE 1 " " -AT 1 "@" -WHITESPACE 1 " " -POUND 1 "#" -WHITESPACE 1 " " -TILDE 1 "~" -WHITESPACE 1 " " -QUESTION 1 "?" -WHITESPACE 1 " " -DOLLAR 1 "$" -WHITESPACE 1 " " -AMP 1 "&" -WHITESPACE 1 " " -PIPE 1 "|" -WHITESPACE 1 " " -PLUS 1 "+" -WHITESPACE 1 " " -STAR 1 "*" -WHITESPACE 1 " " -SLASH 1 "/" -WHITESPACE 1 " " -CARET 1 "^" -WHITESPACE 1 " " -PERCENT 1 "%" -WHITESPACE 1 "\n" -DOT 1 "." -WHITESPACE 1 " " -DOTDOT 2 ".." -WHITESPACE 1 " " -DOTDOTDOT 3 "..." -WHITESPACE 1 " " -DOTDOTEQ 3 "..=" -WHITESPACE 1 "\n" -COLON 1 ":" -WHITESPACE 1 " " -COLONCOLON 2 "::" -WHITESPACE 1 "\n" -EQ 1 "=" -WHITESPACE 1 " " -FAT_ARROW 2 "=>" -WHITESPACE 1 "\n" -EXCL 1 "!" -WHITESPACE 1 " " -NEQ 2 "!=" -WHITESPACE 1 "\n" -MINUS 1 "-" -WHITESPACE 1 " " -THIN_ARROW 2 "->" -WHITESPACE 1 "\n" diff --git a/tests/data/lexer/0006_chars.rs b/tests/data/lexer/0006_chars.rs deleted file mode 100644 index 03598d908..000000000 --- a/tests/data/lexer/0006_chars.rs +++ /dev/null @@ -1 +0,0 @@ -'x' ' ' '0' diff --git a/tests/data/lexer/0006_chars.txt b/tests/data/lexer/0006_chars.txt deleted file mode 100644 index ecaf22355..000000000 --- a/tests/data/lexer/0006_chars.txt +++ /dev/null @@ -1,6 +0,0 @@ -CHAR 3 "\'x\'" -WHITESPACE 1 " " -CHAR 3 "\' \'" -WHITESPACE 1 " " -CHAR 3 "\'0\'" -WHITESPACE 1 "\n" diff --git a/tests/data/lexer/0007_lifetimes.rs b/tests/data/lexer/0007_lifetimes.rs deleted file mode 100644 index b764f1dce..000000000 --- a/tests/data/lexer/0007_lifetimes.rs +++ /dev/null @@ -1 +0,0 @@ -'a 'foo 'foo_bar_baz '_ diff --git a/tests/data/lexer/0007_lifetimes.txt b/tests/data/lexer/0007_lifetimes.txt deleted file mode 100644 index 005c29100..000000000 --- a/tests/data/lexer/0007_lifetimes.txt +++ /dev/null @@ -1,8 +0,0 @@ -LIFETIME 2 "\'a" -WHITESPACE 1 " " -LIFETIME 4 "\'foo" -WHITESPACE 1 " " -LIFETIME 12 "\'foo_bar_baz" -WHITESPACE 1 " " -LIFETIME 2 "\'_" -WHITESPACE 1 "\n" diff --git a/tests/data/lexer/0008_byte_strings.rs b/tests/data/lexer/0008_byte_strings.rs deleted file mode 100644 index 9dd1570de..000000000 --- a/tests/data/lexer/0008_byte_strings.rs +++ /dev/null @@ -1,2 +0,0 @@ -b'' b'x' b"foo" br"" -b''suf b""ix br""br diff --git a/tests/data/lexer/0008_byte_strings.txt b/tests/data/lexer/0008_byte_strings.txt deleted file mode 100644 index ed8cd4bab..000000000 --- a/tests/data/lexer/0008_byte_strings.txt +++ /dev/null @@ -1,14 +0,0 @@ -BYTE 3 "b\'\'" -WHITESPACE 1 " " -BYTE 4 "b\'x\'" -WHITESPACE 1 " " -BYTE_STRING 6 "b\"foo\"" -WHITESPACE 1 " " -RAW_BYTE_STRING 4 "br\"\"" -WHITESPACE 1 "\n" -BYTE 6 "b\'\'suf" -WHITESPACE 1 " " -BYTE_STRING 5 "b\"\"ix" -WHITESPACE 1 " " -RAW_BYTE_STRING 6 "br\"\"br" -WHITESPACE 1 "\n" diff --git a/tests/data/lexer/0009_strings.rs b/tests/data/lexer/0009_strings.rs deleted file mode 100644 index 7b7faa5d8..000000000 --- a/tests/data/lexer/0009_strings.rs +++ /dev/null @@ -1 +0,0 @@ -"hello" r"world" diff --git a/tests/data/lexer/0009_strings.txt b/tests/data/lexer/0009_strings.txt deleted file mode 100644 index 7fb6b7b36..000000000 --- a/tests/data/lexer/0009_strings.txt +++ /dev/null @@ -1,4 +0,0 @@ -STRING 7 "\"hello\"" -WHITESPACE 1 " " -RAW_STRING 8 "r\"world\"" -WHITESPACE 1 "\n" diff --git a/tests/data/lexer/0010_comments.rs b/tests/data/lexer/0010_comments.rs deleted file mode 100644 index 71bdd1f9c..000000000 --- a/tests/data/lexer/0010_comments.rs +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash -// hello -//! World diff --git a/tests/data/lexer/0010_comments.txt b/tests/data/lexer/0010_comments.txt deleted file mode 100644 index 3c997de3f..000000000 --- a/tests/data/lexer/0010_comments.txt +++ /dev/null @@ -1,6 +0,0 @@ -SHEBANG 19 "#!/usr/bin/env bash" -WHITESPACE 1 "\n" -COMMENT 8 "// hello" -WHITESPACE 1 "\n" -COMMENT 9 "//! World" -WHITESPACE 1 "\n" diff --git a/tests/data/lexer/0011_keywords.rs b/tests/data/lexer/0011_keywords.rs deleted file mode 100644 index e6bf64d4d..000000000 --- a/tests/data/lexer/0011_keywords.rs +++ /dev/null @@ -1,3 +0,0 @@ -fn use struct trait enum impl true false as extern crate -mod pub self super in where for loop while if match const -static mut type ref let else move return diff --git a/tests/data/lexer/0011_keywords.txt b/tests/data/lexer/0011_keywords.txt deleted file mode 100644 index d6a1abe8a..000000000 --- a/tests/data/lexer/0011_keywords.txt +++ /dev/null @@ -1,62 +0,0 @@ -FN_KW 2 "fn" -WHITESPACE 1 " " -USE_KW 3 "use" -WHITESPACE 1 " " -STRUCT_KW 6 "struct" -WHITESPACE 1 " " -TRAIT_KW 5 "trait" -WHITESPACE 1 " " -ENUM_KW 4 "enum" -WHITESPACE 1 " " -IMPL_KW 4 "impl" -WHITESPACE 1 " " -TRUE_KW 4 "true" -WHITESPACE 1 " " -FALSE_KW 5 "false" -WHITESPACE 1 " " -AS_KW 2 "as" -WHITESPACE 1 " " -EXTERN_KW 6 "extern" -WHITESPACE 1 " " -CRATE_KW 5 "crate" -WHITESPACE 1 "\n" -MOD_KW 3 "mod" -WHITESPACE 1 " " -PUB_KW 3 "pub" -WHITESPACE 1 " " -SELF_KW 4 "self" -WHITESPACE 1 " " -SUPER_KW 5 "super" -WHITESPACE 1 " " -IN_KW 2 "in" -WHITESPACE 1 " " -WHERE_KW 5 "where" -WHITESPACE 1 " " -FOR_KW 3 "for" -WHITESPACE 1 " " -LOOP_KW 4 "loop" -WHITESPACE 1 " " -WHILE_KW 5 "while" -WHITESPACE 1 " " -IF_KW 2 "if" -WHITESPACE 1 " " -MATCH_KW 5 "match" -WHITESPACE 1 " " -CONST_KW 5 "const" -WHITESPACE 1 "\n" -STATIC_KW 6 "static" -WHITESPACE 1 " " -MUT_KW 3 "mut" -WHITESPACE 1 " " -TYPE_KW 4 "type" -WHITESPACE 1 " " -REF_KW 3 "ref" -WHITESPACE 1 " " -LET_KW 3 "let" -WHITESPACE 1 " " -ELSE_KW 4 "else" -WHITESPACE 1 " " -MOVE_KW 4 "move" -WHITESPACE 1 " " -RETURN_KW 6 "return" -WHITESPACE 1 "\n" -- cgit v1.2.3