Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Nov 5, 2015
1 parent 25a27a7 commit bafe1e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "string-wrapper"
version = "0.1.4"
version = "0.1.5"
authors = ["Simon Sapin <simon.sapin@exyr.org>"]
license = "MIT / Apache-2.0"
repository = "https://github.com/SimonSapin/rust-std-candidates"
Expand Down
6 changes: 0 additions & 6 deletions lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,6 @@ fn it_works() {
assert_eq!(s.capacity(), 10);
assert_eq!(s.extra_capacity(), 4);

s.truncate(8);
assert_eq!(&*s, "aé~~~");
assert_eq!(s.len(), 6);
assert_eq!(s.capacity(), 10);
assert_eq!(s.extra_capacity(), 4);

assert_eq!(s.push_partial_str("_🌠"), Err(1));
assert_eq!(&*s, "aé~~~_");
assert_eq!(s.len(), 7);
Expand Down

0 comments on commit bafe1e5

Please sign in to comment.