Skip to content
This repository has been archived by the owner on Jan 21, 2023. It is now read-only.

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 b1a1240 commit e10bfeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion string-wrapper/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 e10bfeb

Please sign in to comment.