Skip to content

Commit a3a5d83

Browse files
committed
Classify BinaryHeap & LinkedList unit tests as such
1 parent f58d51b commit a3a5d83

File tree

5 files changed

+692
-694
lines changed

5 files changed

+692
-694
lines changed

library/alloc/src/collections/binary_heap.rs

+3
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ use crate::vec::{self, AsIntoIter, Vec};
155155

156156
use super::SpecExtend;
157157

158+
#[cfg(test)]
159+
mod tests;
160+
158161
/// A priority queue implemented with a binary heap.
159162
///
160163
/// This will be a max-heap.

library/alloc/tests/binary_heap.rs library/alloc/src/collections/binary_heap/tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use std::collections::binary_heap::{Drain, PeekMut};
2-
use std::collections::BinaryHeap;
1+
use super::*;
2+
use crate::boxed::Box;
33
use std::iter::TrustedLen;
44
use std::panic::{catch_unwind, AssertUnwindSafe};
55
use std::sync::atomic::{AtomicU32, Ordering};

0 commit comments

Comments
 (0)