Skip to content

Commit

Permalink
Better test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Aug 27, 2024
1 parent e72e8dd commit 9c646b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hugr-core/src/std_extensions/collections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,9 @@ mod test {

#[test]
fn test_extension() {
assert_eq!(EXTENSION.name(), &EXTENSION_ID);
assert_eq!(&ListOp::push.extension_id(), EXTENSION.name());
assert_eq!(&ListOp::push.extension(), EXTENSION.name());
assert!(ListOp::pop.registry().contains(EXTENSION.name()));
for (_, op_def) in EXTENSION.operations() {
assert_eq!(op_def.extension(), &EXTENSION_ID);
}
Expand Down

0 comments on commit 9c646b3

Please sign in to comment.