Skip to content

Commit

Permalink
Update src/algorithm/iter.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Seyon Sivarajah <[email protected]>
  • Loading branch information
doug-q and ss2165 authored Feb 12, 2024
1 parent e454dab commit 768d07a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/algorithm/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,11 @@ mod test {
#[test]
fn out_of_order() -> Result<(), Box<dyn Error>> {
use crate::ops::handle::NodeHandle;
let sig = crate::types::PolyFuncType::new(
[],
FunctionType::new(type_row![USIZE_T], type_row![USIZE_T]),
);
let mut fun_builder = FunctionBuilder::new("f3", sig.clone())?;
let sig = FunctionType::new_endo(type_row![USIZE_T]);
let mut fun_builder = FunctionBuilder::new("f3", sig.clone().into())?;
let [i] = fun_builder.input_wires_arr();
let noop = fun_builder.add_dataflow_op(ops::LeafOp::Noop { ty: USIZE_T }, [i])?;
let dfg_builder = fun_builder.dfg_builder(sig.body().clone(), None, [noop.out_wire(0)])?;
let dfg_builder = fun_builder.dfg_builder(sig.clone(), None, [noop.out_wire(0)])?;
let [i1] = dfg_builder.input_wires_arr();
let dfg = dfg_builder.finish_with_outputs([i1])?;
let mut h = fun_builder.finish_prelude_hugr_with_outputs([dfg.out_wire(0)])?;
Expand Down

0 comments on commit 768d07a

Please sign in to comment.