Skip to content

Commit

Permalink
User a less nonsense Hugr in OpDef tests
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-q committed May 10, 2024
1 parent 13ead5e commit 595e797
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hugr/src/extension/op_def.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,6 @@ mod test {
use crate::std_extensions::collections::{EXTENSION, LIST_TYPENAME};
use crate::types::Type;
use crate::types::{type_param::TypeParam, FunctionType, PolyFuncType, TypeArg, TypeBound};
use crate::Hugr;
use crate::{const_extension_ids, Extension};

const_extension_ids! {
Expand All @@ -504,7 +503,7 @@ mod test {
let def = e.add_op(OP_NAME, "desc".into(), type_scheme)?;
def.add_lower_func(LowerFunc::FixedHugr {
extensions: ExtensionSet::new(),
hugr: Hugr::default(),
hugr: crate::builder::test::simple_dfg_hugr(), // this is nonsense, buy we are not testing the actual lowering here
});
def.add_misc("key", Default::default());
assert_eq!(def.description(), "desc");
Expand Down

0 comments on commit 595e797

Please sign in to comment.