()
| 61 | |
| 62 | #[test] |
| 63 | fn drop_clear() { |
| 64 | use algo::common::drop::{self, Elem}; |
| 65 | drop::with(|ctx| { |
| 66 | let mut ll = LinkedList::default(); |
| 67 | ll.push_back(Elem); |
| 68 | ll.push_front(Elem); |
| 69 | ll.push_back(Elem); |
| 70 | ll.push_front(Elem); |
| 71 | drop(ll); |
| 72 | assert_eq!(4, ctx.get()); |
| 73 | }); |
| 74 | } |
| 75 | |
| 76 | #[test] |
| 77 | fn drop_clear_with_reverse() { |
nothing calls this directly
no test coverage detected