diff options
author | Aleksey Kladov <[email protected]> | 2018-08-23 18:04:13 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-23 18:04:13 +0100 |
commit | ec706175645172ee4bd5d3d4c0645ffb45d79bbf (patch) | |
tree | 48fa60231036d7b1ff48b5e7b99bdc310f9f8f8b /crates/libsyntax2/tests | |
parent | f3e1e6df4202a20fa75543f6847782be515dae06 (diff) |
byte literals
Diffstat (limited to 'crates/libsyntax2/tests')
-rw-r--r-- | crates/libsyntax2/tests/data/lexer/0008_byte_strings.rs | 1 | ||||
-rw-r--r-- | crates/libsyntax2/tests/data/lexer/0008_byte_strings.txt | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/crates/libsyntax2/tests/data/lexer/0008_byte_strings.rs b/crates/libsyntax2/tests/data/lexer/0008_byte_strings.rs index 9dd1570de..b54930f5e 100644 --- a/crates/libsyntax2/tests/data/lexer/0008_byte_strings.rs +++ b/crates/libsyntax2/tests/data/lexer/0008_byte_strings.rs | |||
@@ -1,2 +1,3 @@ | |||
1 | b'' b'x' b"foo" br"" | 1 | b'' b'x' b"foo" br"" |
2 | b''suf b""ix br""br | 2 | b''suf b""ix br""br |
3 | b'\n' b'\\' b'\'' b'hello' | ||
diff --git a/crates/libsyntax2/tests/data/lexer/0008_byte_strings.txt b/crates/libsyntax2/tests/data/lexer/0008_byte_strings.txt index ed8cd4bab..bc03b51a8 100644 --- a/crates/libsyntax2/tests/data/lexer/0008_byte_strings.txt +++ b/crates/libsyntax2/tests/data/lexer/0008_byte_strings.txt | |||
@@ -12,3 +12,11 @@ BYTE_STRING 5 "b\"\"ix" | |||
12 | WHITESPACE 1 " " | 12 | WHITESPACE 1 " " |
13 | RAW_BYTE_STRING 6 "br\"\"br" | 13 | RAW_BYTE_STRING 6 "br\"\"br" |
14 | WHITESPACE 1 "\n" | 14 | WHITESPACE 1 "\n" |
15 | BYTE 5 "b\'\\n\'" | ||
16 | WHITESPACE 1 " " | ||
17 | BYTE 5 "b\'\\\\\'" | ||
18 | WHITESPACE 1 " " | ||
19 | BYTE 5 "b\'\\\'\'" | ||
20 | WHITESPACE 1 " " | ||
21 | BYTE 8 "b\'hello\'" | ||
22 | WHITESPACE 1 "\n" | ||