Skip to content

Commit bafe1e5

Browse files
committed
Update tests
1 parent 25a27a7 commit bafe1e5

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "string-wrapper"
3-
version = "0.1.4"
3+
version = "0.1.5"
44
authors = ["Simon Sapin <[email protected]>"]
55
license = "MIT / Apache-2.0"
66
repository = "https://github.com/SimonSapin/rust-std-candidates"

lib.rs

-6
Original file line numberDiff line numberDiff line change
@@ -305,12 +305,6 @@ fn it_works() {
305305
assert_eq!(s.capacity(), 10);
306306
assert_eq!(s.extra_capacity(), 4);
307307

308-
s.truncate(8);
309-
assert_eq!(&*s, "aé~~~");
310-
assert_eq!(s.len(), 6);
311-
assert_eq!(s.capacity(), 10);
312-
assert_eq!(s.extra_capacity(), 4);
313-
314308
assert_eq!(s.push_partial_str("_🌠"), Err(1));
315309
assert_eq!(&*s, "aé~~~_");
316310
assert_eq!(s.len(), 7);

0 commit comments

Comments
 (0)