mirror of
https://github.com/circify/circ.git
synced 2026-01-10 22:27:55 -05:00
fix flattening test
This commit is contained in:
@@ -143,6 +143,7 @@ mod test {
|
||||
fn is_flat(t: Term) -> bool {
|
||||
PostOrderIter::new(t).all(|c| {
|
||||
c.op == Op::PfNaryOp(PfNaryOp::Mul)
|
||||
|| c.op == Op::Tuple
|
||||
|| c.op.arity().is_some()
|
||||
|| !c.cs.iter().any(|cc| c.op == cc.op)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user