about summary refs log tree commit diff
path: root/src/libcore/tests
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/libcore/tests
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/libcore/tests')
-rw-r--r--src/libcore/tests/char.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/libcore/tests/char.rs b/src/libcore/tests/char.rs
index 76f28d493ab..d19e3b52769 100644
--- a/src/libcore/tests/char.rs
+++ b/src/libcore/tests/char.rs
@@ -181,20 +181,13 @@ fn test_escape_debug() {
     assert_eq!(string('\u{ff}'), "\u{ff}");
     assert_eq!(string('\u{11b}'), "\u{11b}");
     assert_eq!(string('\u{1d4b6}'), "\u{1d4b6}");
+    assert_eq!(string('\u{301}'), "'\\u{301}'");     // combining character
     assert_eq!(string('\u{200b}'),"\\u{200b}");      // zero width space
     assert_eq!(string('\u{e000}'), "\\u{e000}");     // private use 1
     assert_eq!(string('\u{100000}'), "\\u{100000}"); // private use 2
 }
 
 #[test]
-fn test_debug() {
-    assert_eq!(format!("{:?}", 'a'), "'a'");                // ASCII character
-    assert_eq!(format!("{:?}", 'é'), "'é'");                // printable character
-    assert_eq!(format!("{:?}", '\u{301}'), "'\\u{301}'");   // combining character
-    assert_eq!(format!("{:?}", '\u{e000}'), "'\\u{e000}'"); // private use 1
-}
-
-#[test]
 fn test_escape_default() {
     fn string(c: char) -> String {
         let iter: String = c.escape_default().collect();