Skip to content

Commit

Permalink
Explicit root port count check
Browse files Browse the repository at this point in the history
Co-authored-by: Douglas Wilson <141026920+doug-q@users.noreply.github.com>
  • Loading branch information
aborgna-q and doug-q committed Jun 28, 2024
1 parent 4635273 commit 6d6f29e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hugr-core/src/hugr/views/sibling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ mod test {

assert_eq!(region.node_count(), extracted.node_count());
assert_eq!(region.root_type(), extracted.root_type());
assert_eq!(0, extracted.input_count(extracted.root()) + extracted.output_count(extracted.root()));

Ok(())
}
Expand Down

0 comments on commit 6d6f29e

Please sign in to comment.