From d76d7d2a7426e34b0fb358029cbaa2d71f0118e8 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 31 Dec 2017 15:14:47 +0300 Subject: Lexer: strings --- tests/data/lexer/0008_byte_strings.rs | 2 ++ tests/data/lexer/0008_byte_strings.txt | 14 ++++++++++++++ tests/data/lexer/0008_strings.rs | 2 -- tests/data/lexer/0008_strings.txt | 14 -------------- tests/data/lexer/0009_strings.rs | 1 + tests/data/lexer/0009_strings.txt | 4 ++++ 6 files changed, 21 insertions(+), 16 deletions(-) create mode 100644 tests/data/lexer/0008_byte_strings.rs create mode 100644 tests/data/lexer/0008_byte_strings.txt delete mode 100644 tests/data/lexer/0008_strings.rs delete mode 100644 tests/data/lexer/0008_strings.txt create mode 100644 tests/data/lexer/0009_strings.rs create mode 100644 tests/data/lexer/0009_strings.txt (limited to 'tests') diff --git a/tests/data/lexer/0008_byte_strings.rs b/tests/data/lexer/0008_byte_strings.rs new file mode 100644 index 000000000..9dd1570de --- /dev/null +++ b/tests/data/lexer/0008_byte_strings.rs @@ -0,0 +1,2 @@ +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 new file mode 100644 index 000000000..ed8cd4bab --- /dev/null +++ b/tests/data/lexer/0008_byte_strings.txt @@ -0,0 +1,14 @@ +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/0008_strings.rs b/tests/data/lexer/0008_strings.rs deleted file mode 100644 index 9dd1570de..000000000 --- a/tests/data/lexer/0008_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_strings.txt b/tests/data/lexer/0008_strings.txt deleted file mode 100644 index ed8cd4bab..000000000 --- a/tests/data/lexer/0008_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 new file mode 100644 index 000000000..7b7faa5d8 --- /dev/null +++ b/tests/data/lexer/0009_strings.rs @@ -0,0 +1 @@ +"hello" r"world" diff --git a/tests/data/lexer/0009_strings.txt b/tests/data/lexer/0009_strings.txt new file mode 100644 index 000000000..7fb6b7b36 --- /dev/null +++ b/tests/data/lexer/0009_strings.txt @@ -0,0 +1,4 @@ +STRING 7 "\"hello\"" +WHITESPACE 1 " " +RAW_STRING 8 "r\"world\"" +WHITESPACE 1 "\n" -- cgit v1.2.3