Skip to content

Commit

Permalink
Remove duplicate test.
Browse files Browse the repository at this point in the history
test_dedup_shared has been exactly the same as test_dedup_unique since
6f16df4, three years ago.
  • Loading branch information
SimonSapin committed Sep 26, 2016
1 parent 3bf4a7a commit dc97341
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/libcollectionstest/slice.rs
Expand Up @@ -344,18 +344,6 @@ fn test_dedup_unique() {
// and/or rt should raise errors.
}

#[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];
Expand Down

0 comments on commit dc97341

Please sign in to comment.