Skip to content

Commit dc97341

Browse files
committed
Remove duplicate test.
test_dedup_shared has been exactly the same as test_dedup_unique since 6f16df4, three years ago.
1 parent 3bf4a7a commit dc97341

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/libcollectionstest/slice.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -344,18 +344,6 @@ fn test_dedup_unique() {
344344
// and/or rt should raise errors.
345345
}
346346

347-
#[test]
348-
fn test_dedup_shared() {
349-
let mut v0: Vec<Box<_>> = vec![box 1, box 1, box 2, box 3];
350-
v0.dedup();
351-
let mut v1: Vec<Box<_>> = vec![box 1, box 2, box 2, box 3];
352-
v1.dedup();
353-
let mut v2: Vec<Box<_>> = vec![box 1, box 2, box 3, box 3];
354-
v2.dedup();
355-
// If the pointers were leaked or otherwise misused, valgrind and/or
356-
// rt should raise errors.
357-
}
358-
359347
#[test]
360348
fn test_retain() {
361349
let mut v = vec![1, 2, 3, 4, 5];

0 commit comments

Comments
 (0)