test: add proptest arbitrary as a feature

This commit is contained in:
Anand Balakrishnan 2023-04-04 09:56:19 -07:00
parent 00b03a509f
commit 7c8c833469
No known key found for this signature in database
4 changed files with 9 additions and 178 deletions

View file

@ -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<_>>()
})
})
}