We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4a3e19 commit d827973Copy full SHA for d827973
tests/test.rs
@@ -114,6 +114,10 @@ fn literal_string() {
114
assert_eq!(Literal::string("foo").to_string(), "\"foo\"");
115
assert_eq!(Literal::string("\"").to_string(), "\"\\\"\"");
116
assert_eq!(Literal::string("didn't").to_string(), "\"didn't\"");
117
+ assert_eq!(
118
+ Literal::string("a\00b\07c\08d\0e\0").to_string(),
119
+ "\"a\\00b\\07c\\08d\\0e\\0\"",
120
+ );
121
}
122
123
#[test]
@@ -147,6 +151,10 @@ fn literal_byte_string() {
147
151
Literal::byte_string(b"\0\t\n\r\"\\2\x10").to_string(),
148
152
"b\"\\0\\t\\n\\r\\\"\\\\2\\x10\"",
149
153
);
154
155
+ Literal::byte_string(b"a\00b\07c\08d\0e\0").to_string(),
156
+ "b\"a\\00b\\07c\\08d\\0e\\0\"",
157
150
158
159
160
0 commit comments