fix flattening test

This commit is contained in:
Alex Ozdemir
2021-05-21 22:41:58 -07:00
parent 98b57a5b48
commit 3c72c98ff5

View File

@@ -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)
})