Skip to content

Commit

Permalink
add a test
Browse files Browse the repository at this point in the history
Signed-off-by: Alex McCaskey <amccaskey@nvidia.com>
  • Loading branch information
amccaskey committed Mar 12, 2024
1 parent de5aa46 commit 49e1753
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/tests/builder/test_kernel_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1195,6 +1195,12 @@ def test_draw():
assert circuit == expected_str


def test_list_subscript():
kernelAndArgs = cudaq.make_kernel(bool, list[bool], List[int], list[float])
print(kernelAndArgs[0])
assert len(kernelAndArgs) == 5 and len(kernelAndArgs[0].arguments) == 4


# leave for gdb debugging
if __name__ == "__main__":
loc = os.path.abspath(__file__)
Expand Down

0 comments on commit 49e1753

Please sign in to comment.