about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2018-05-16 23:20:22 +0100
committervarkor <github@varkor.com>2018-05-21 18:57:54 +0100
commit8c89e7f3d58ff110aa4de64aef8ef29f78ebf456 (patch)
tree301f03ef2884b409ab53eeeb0bdca89b254cfba2 /src/liballoc
parentd7aa35eb1bdc61db0842ab81f6c96f24897e61ad (diff)
downloadrust-8c89e7f3d58ff110aa4de64aef8ef29f78ebf456.tar.gz
rust-8c89e7f3d58ff110aa4de64aef8ef29f78ebf456.zip
Make {char, str}::escape_debug and impl Debug for {char, str} consistent
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/tests/str.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liballoc/tests/str.rs b/src/liballoc/tests/str.rs
index 1a47e5433ea..2f38c8b3ae2 100644
--- a/src/liballoc/tests/str.rs
+++ b/src/liballoc/tests/str.rs
@@ -999,6 +999,7 @@ fn test_escape_debug() {
     assert_eq!("\u{10000}\u{10ffff}".escape_debug(), "\u{10000}\\u{10ffff}");
     assert_eq!("ab\u{200b}".escape_debug(), "ab\\u{200b}");
     assert_eq!("\u{10d4ea}\r".escape_debug(), "\\u{10d4ea}\\r");
+    assert_eq!("\u{301}a\u{301}bé\u{e000}".escape_debug(), "\\u{301}a\\u{301}bé\\u{e000}");
 }
 
 #[test]