From bafe1e535b6107cd7a884eca8d5c363dc3198268 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Thu, 5 Nov 2015 21:51:12 +0100 Subject: [PATCH] Update tests --- Cargo.toml | 2 +- lib.rs | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 890dfdf..d70c8a8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "string-wrapper" -version = "0.1.4" +version = "0.1.5" authors = ["Simon Sapin "] license = "MIT / Apache-2.0" repository = "https://github.com/SimonSapin/rust-std-candidates" diff --git a/lib.rs b/lib.rs index ac9e96a..24c0df9 100644 --- a/lib.rs +++ b/lib.rs @@ -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);