Skip to content

Commit 6143492

Browse files
committed
test iter_ptr_default
1 parent 4b72715 commit 6143492

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
use crate::GrowthWithConstantTimeAccess;
2+
use crate::concurrent_pinned_vec::iter_ptr::IterPtrOfCon;
3+
use crate::{Doubling, Linear};
4+
use std::string::String;
5+
use test_case::test_matrix;
6+
7+
#[test_matrix([
8+
Doubling,
9+
Linear::new(4),
10+
])]
11+
fn iter_ptr_default<G>(_: G)
12+
where
13+
G: GrowthWithConstantTimeAccess,
14+
{
15+
let iter = IterPtrOfCon::<String, G>::default();
16+
for _ in iter {}
17+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
mod into_iter;
2+
mod iter_ptr;

0 commit comments

Comments
 (0)