Add some missing Show implementations in libstd

This commit is contained in:
Brendan Zabarauskas
2014-02-13 06:41:34 +11:00
committed by Alex Crichton
parent 8a5b938b3b
commit 957fcb3f54
8 changed files with 193 additions and 20 deletions

View File

@@ -4164,6 +4164,7 @@ mod tests {
assert_eq!(s.len(), 5);
assert_eq!(s.as_slice(), "abcde");
assert_eq!(s.to_str(), ~"abcde");
assert_eq!(format!("{}", s), ~"abcde");
assert!(s.lt(&Owned(~"bcdef")));
assert_eq!(Slice(""), Default::default());
@@ -4171,6 +4172,7 @@ mod tests {
assert_eq!(o.len(), 5);
assert_eq!(o.as_slice(), "abcde");
assert_eq!(o.to_str(), ~"abcde");
assert_eq!(format!("{}", o), ~"abcde");
assert!(o.lt(&Slice("bcdef")));
assert_eq!(Owned(~""), Default::default());