This commit is contained in:
wborgeaud 2021-06-24 17:49:30 +02:00
parent 8c008ce4fb
commit b4258976b1

View File

@ -231,11 +231,9 @@ mod tests {
"The tree has too much or too little gates." "The tree has too much or too little gates."
); );
assert!( assert!(
gates.iter().all(|g| gates_with_prefix gates
.iter() .iter()
.map(|(gg, _)| gg) .all(|g| gates_with_prefix.iter().map(|(gg, _)| gg).any(|gg| gg == g)),
.find(|gg| *gg == g)
.is_some()),
"Some gates are not in the tree." "Some gates are not in the tree."
); );
assert!( assert!(