Skip to content

Commit

Permalink
doubly-linked-list: test drops of large lists
Browse files Browse the repository at this point in the history
  • Loading branch information
Emerentius committed Aug 19, 2019
1 parent 67509d3 commit 1fd6355
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions exercises/doubly-linked-list/tests/doubly-linked-list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,12 @@ fn drop_no_double_frees() {
assert_eq!(counter.get(), N);
}

#[test]
#[ignore]
fn drop_large_list() {
drop((0..2_000_000).collect::<LinkedList<i32>>());
}

// ———————————————————————————————————————————————————————————
// Tests for Step 5 (advanced): covariance and Send/Sync
// ———————————————————————————————————————————————————————————
Expand Down

0 comments on commit 1fd6355

Please sign in to comment.