[−][src]Function im_rc::ordmap::proptest::ord_map
pub fn ord_map<K: Strategy + 'static, V: Strategy + 'static>(
key: K,
value: V,
size: Range<usize>
) -> BoxedStrategy<OrdMap<<K::Tree as ValueTree>::Value, <V::Tree as ValueTree>::Value>> where
<K::Tree as ValueTree>::Value: Ord + Clone,
<V::Tree as ValueTree>::Value: Clone,
A strategy for a map of a given size.
Examples
ⓘThis example is not tested
proptest! { #[test] fn proptest_works(ref m in map(0..9999, ".*", 10..100)) { assert!(m.len() < 100); assert!(m.len() >= 10); } }