Skip to content

Commit f15e7cb

Browse files
committed
a couple more test updates
Signed-off-by: Bettina Heim <[email protected]>
1 parent faf3d3b commit f15e7cb

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

python/tests/custom/test_custom_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def bell():
226226

227227
with pytest.raises(RuntimeError) as error:
228228
bell.compile()
229-
assert 'controlled operation requested without any control argument(s)' in repr(
229+
assert 'missing value' in repr(
230230
error)
231231

232232

@@ -265,7 +265,7 @@ def kernel3():
265265

266266
with pytest.raises(RuntimeError) as error:
267267
cudaq.sample(kernel3)
268-
assert 'invalid number of arguments (1) passed to custom_cz (requires 2 arguments)' in repr(
268+
assert 'missing value' in repr(
269269
error)
270270

271271

python/tests/visualization/test_draw.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@ def hw_kernel():
138138
cudaq.set_target('ionq', emulate=True)
139139
# fmt: on
140140
expected_str = R"""
141-
╭───╮ ╭───╮╭─────╮╭───╮╭───╮
142-
q0 : ┤ h ├──●─────────────────────●──────────────┤ x ├┤ tdg ├┤ x ├┤ t ├
143-
╰───╯ ╰─┬─╯╰─────╯╰─┬─╯├───┤
144-
q1 : ──────────────────●─────────┼───────────●───────────────●──┤ t ├
145-
╭───╮╭─┴─╮╭─────╮╭─┴─╮╭───╮╭─┴─╮╭─────╮╭─┴─╮───╮ ╭───╰───╯
141+
╭───╮ ╭───╮
142+
q0 : ┤ h ├──────────────●─────────────────────●───────────────●──┤ t ├
143+
╰───╯ │ ╭─┴─╮╭─────╮╭─┴─╮├───┤
144+
q1 : ──────────────────┼─────────●───────────┼──┤ x ├┤ tdg ├┤ x ├┤ t ├
145+
╭───╮╭─┴─╮╭─────╮╭─┴─╮╭───╮╭─┴─╮╭─────╮╭─┴─╮───┤╰┬───┬╯╰───╯╰───╯
146146
q2 : ┤ h ├┤ x ├┤ tdg ├┤ x ├┤ t ├┤ x ├┤ tdg ├┤ x ├┤ t ├─┤ h ├───────────
147147
╰───╯╰───╯╰─────╯╰───╯╰───╯╰───╯╰─────╯╰───╯╰───╯ ╰───╯
148148
"""

0 commit comments

Comments
 (0)