Skip to content

Commit

Permalink
Update test_worklist.py
Browse files Browse the repository at this point in the history
  • Loading branch information
glorialeezero committed Nov 28, 2024
1 parent 43c43f7 commit 19ed617
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_worklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,13 @@ def test_add_same_cost():
pgm2 = Pgm("n", SeqCmd(GateCmd(X(HoleAexp())), GateCmd(X(HoleAexp()))))
worklist.put(pgm1, pgm2)
assert worklist.get() == pgm1


def test_show():
worklist = Worklist()
pgm1 = Pgm("n", SeqCmd(GateCmd(H(HoleAexp())), GateCmd(H(HoleAexp()))))
pgm2 = Pgm("n", SeqCmd(GateCmd(X(HoleAexp())), GateCmd(X(HoleAexp()))))
worklist.put(pgm1, pgm2)
worklist.show_set()
worklist.show_pq()
assert True

0 comments on commit 19ed617

Please sign in to comment.