From db4a08525f5621276d34b094a519923cef8d6326 Mon Sep 17 00:00:00 2001 From: Alexandre Bourassa Date: Fri, 22 Mar 2024 21:42:10 -0700 Subject: [PATCH] modify the unit test to assert the full circuit --- glue/cirq/stimcirq/_cirq_to_stim_test.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/glue/cirq/stimcirq/_cirq_to_stim_test.py b/glue/cirq/stimcirq/_cirq_to_stim_test.py index da22345a8..9bb6f55f6 100644 --- a/glue/cirq/stimcirq/_cirq_to_stim_test.py +++ b/glue/cirq/stimcirq/_cirq_to_stim_test.py @@ -352,7 +352,14 @@ def test_loop_with_one_rep(): ) ) sc = stimcirq.cirq_circuit_to_stim_circuit(cc) - assert str(sc).splitlines().count('TICK') > 1 + assert str(sc) == """H 0 +TICK +H 0 +TICK +H 0 +TICK +H 0 +TICK""" def test_on_tagged_loop(): a, b = cirq.LineQubit.range(2)