test: add proptest arbitrary as a feature
This commit is contained in:
parent
00b03a509f
commit
7c8c833469
4 changed files with 9 additions and 178 deletions
|
|
@ -268,10 +268,8 @@ impl<T> BaseSignal for ConstantSignal<T> {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[cfg(any(test, feature = "arbitrary"))]
|
||||
pub mod arbitrary {
|
||||
|
||||
use itertools::Itertools;
|
||||
use proptest::prelude::*;
|
||||
use proptest::sample::SizeRange;
|
||||
|
||||
|
|
@ -308,7 +306,7 @@ pub mod arbitrary {
|
|||
ts.into_iter()
|
||||
.map(Duration::from_secs)
|
||||
.zip(values.clone().into_iter())
|
||||
.collect_vec()
|
||||
.collect::<Vec<_>>()
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue