Skip to content

Commit

Permalink
Update tests for rust-lang/rust#34485
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Aug 2, 2016
1 parent bafe1e5 commit dcc28f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ fn it_works() {
let buffer: [u8; 10] = s.clone().into_buffer();
assert_eq!(&buffer, b"a\xC3\xA9~~~_ell");
assert_eq!(format!("{}", s), "aé~~~_");
assert_eq!(format!("{:?}", s), r#""a\u{e9}~~~_""#);
assert_eq!(format!("{:?}", s), r#""~~~_""#);

assert_eq!(s.push_partial_str("ô!?"), Err(3));
assert_eq!(&*s, "aé~~~_ô!");
Expand Down

0 comments on commit dcc28f0

Please sign in to comment.