diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2016-09-26 18:15:50 +0200 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2016-09-26 18:15:50 +0200 |
| commit | dc973417a8ae30b0e1e52c341fa666090a4b045f (patch) | |
| tree | fd8712928d4adedf9535167260a4f9a67c58f3a6 | |
| parent | 3bf4a7ad45bceef2e7ac666f4cbb41a37d6af763 (diff) | |
| download | rust-dc973417a8ae30b0e1e52c341fa666090a4b045f.tar.gz rust-dc973417a8ae30b0e1e52c341fa666090a4b045f.zip | |
Remove duplicate test.
test_dedup_shared has been exactly the same as test_dedup_unique since 6f16df4aa, three years ago.
| -rw-r--r-- | src/libcollectionstest/slice.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/libcollectionstest/slice.rs b/src/libcollectionstest/slice.rs index 5b341ab62d0..6dc7737bb21 100644 --- a/src/libcollectionstest/slice.rs +++ b/src/libcollectionstest/slice.rs @@ -345,18 +345,6 @@ fn test_dedup_unique() { } #[test] -fn test_dedup_shared() { - let mut v0: Vec<Box<_>> = vec![box 1, box 1, box 2, box 3]; - v0.dedup(); - let mut v1: Vec<Box<_>> = vec![box 1, box 2, box 2, box 3]; - v1.dedup(); - let mut v2: Vec<Box<_>> = vec![box 1, box 2, box 3, box 3]; - v2.dedup(); - // If the pointers were leaked or otherwise misused, valgrind and/or - // rt should raise errors. -} - -#[test] fn test_retain() { let mut v = vec![1, 2, 3, 4, 5]; v.retain(is_odd); |
