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 5d3e58b commit 6c21627Copy full SHA for 6c21627
tests/test.rs
@@ -115,10 +115,11 @@ fn literal_string() {
115
assert_eq!(Literal::string("foo").to_string(), "\"foo\"");
116
assert_eq!(Literal::string("\"").to_string(), "\"\\\"\"");
117
assert_eq!(Literal::string("didn't").to_string(), "\"didn't\"");
118
- assert_eq!(
119
- Literal::string("a\00b\07c\08d\0e\0").to_string(),
120
- "\"a\\x000b\\x007c\\08d\\0e\\0\"",
121
- );
+
+ let repr = Literal::string("a\00b\07c\08d\0e\0").to_string();
+ if repr != "\"a\\x000b\\x007c\\u{0}8d\\u{0}e\\u{0}\"" {
+ assert_eq!(repr, "\"a\\x000b\\x007c\\08d\\0e\\0\"");
122
+ }
123
}
124
125
#[test]
0 commit comments