[−][src]Function im_rc::hashset::proptest::hash_set
pub fn hash_set<A: Strategy + 'static>(
element: A,
size: Range<usize>
) -> BoxedStrategy<HashSet<<A::Tree as ValueTree>::Value>> where
<A::Tree as ValueTree>::Value: Hash + Eq + Clone,
A strategy for a hash set of a given size.
Examples
ⓘThis example is not tested
proptest! { #[test] fn proptest_a_set(ref s in hashset(".*", 10..100)) { assert!(s.len() < 100); assert!(s.len() >= 10); } }