Skip to content

Commit 1a3d20d

Browse files
committed
Yes, tests fixed, simple_cx works, wtf false_branch
1 parent ff8fee0 commit 1a3d20d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tket-qsystem/tests/guppy_opt.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,14 @@ fn no_optimise_guppy<'a>(
107107
#[rstest]
108108
#[case::false_branch(guppy_false_branch(), [
109109
("tket.quantum.H", 2), ("tket.quantum.QAlloc", 1), ("tket.quantum.MeasureFree", 1)
110-
], [])] // No after: panics anyway
110+
], [
111+
("TKET1.tk1op", 1), ("tket.quantum.QAlloc", 1), ("tket.quantum.H", 1), ("tket.quantum.MeasureFree", 1)
112+
])]
111113
#[case::simple_cx(guppy_simple_cx(), [
112114
("tket.quantum.QAlloc", 2), ("tket.quantum.CX", 2), ("tket.quantum.MeasureFree", 2)
113-
], [])] // No after: panics anyway
115+
], [
116+
("tket.quantum.MeasureFree", 2), ("tket.quantum.QAlloc", 2)
117+
])]
114118
fn optimise_guppy<'a>(
115119
#[case] mut hugr: Hugr,
116120
#[case] before: impl IntoIterator<Item = (&'a str, usize)>,

0 commit comments

Comments
 (0)