extern crate alloc;
use alloc::vec::Vec;
use crate::metis::{Dot, DotSet};
use proptest::prelude::*;
mod dot_set;
mod peek;
mod restriction;
mod vector;
fn arb_roster() -> impl Strategy<Value = Vec<u32>> {
prop::collection::vec(0u32..8, 0..8)
}
fn arb_dots() -> impl Strategy<Value = Vec<(u32, u64)>> {
prop::collection::vec((0u32..4, 0u64..12), 0..24)
}
fn have(dots: &[(u32, u64)]) -> DotSet {
let mut set = DotSet::new();
for &pair in dots {
if let Ok(dot) = Dot::try_from(pair) {
let _ = set.insert(dot);
}
}
set
}