}
#[throws(Explode)]
- pub fn add_exhaustive(&mut self, n: usize) {
+ pub fn add_exhaustive(&mut self, zclashes: bool, n: usize) {
let ids: Vec<Vpid> = (0..n).map(
|i| format!("{}.{}", i+1, 1).try_into().unwrap()
).collect_vec();
iproduct!(
[false,true].iter().cloned(),
[ZUS::Auto, ZUS::GOnly].iter().cloned()
+ .take(if zclashes { 2 } else { 1})
).map( move |(bottom,zupd)| {
StartPieceSpec {
id,
target_configs
).enumerate() {
if targets.is_empty() { continue }
- let name = format!("exhaustive-{:02x}", ti);
+ let name = format!("exhaustive-{}-{:02x}",
+ if zclashes { "z" } else { "g" },
+ ti);
self.add_test(&name, pieces, targets)?;
}
}
"77.11",
])?;
- ta.add_exhaustive(4)?;
+ ta.add_exhaustive(false, 5)?;
+ ta.add_exhaustive(true , 4)?;
let tests = ta.finalise()?;