Skip to content

Commit

Permalink
[TAT.py] Add tests for TAT.py.
Browse files Browse the repository at this point in the history
These tests is nearly the same to tests for TAT.hpp.
  • Loading branch information
hzhangxyz committed Nov 22, 2023
1 parent 7b60f9b commit aafbc20
Show file tree
Hide file tree
Showing 38 changed files with 2,143 additions and 353 deletions.
73 changes: 0 additions & 73 deletions PyTAT/tests/old_test/check_aux.py

This file was deleted.

53 changes: 0 additions & 53 deletions PyTAT/tests/old_test/random_test_contract.py

This file was deleted.

78 changes: 0 additions & 78 deletions PyTAT/tests/old_test/random_test_fuse.py

This file was deleted.

46 changes: 0 additions & 46 deletions PyTAT/tests/old_test/random_test_qr.py

This file was deleted.

45 changes: 0 additions & 45 deletions PyTAT/tests/old_test/random_test_svd.py

This file was deleted.

58 changes: 0 additions & 58 deletions PyTAT/tests/old_test/random_test_trace.py

This file was deleted.

8 changes: 8 additions & 0 deletions PyTAT/tests/test_arrow_and_parity.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import TAT


def test_arrow_and_parity():
assert TAT.arrow(+1) == False
assert TAT.arrow(-1) == True
assert TAT.parity(+1) == False
assert TAT.parity(-1) == True
5 changes: 5 additions & 0 deletions PyTAT/tests/test_callable.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import TAT


def test_callable():
assert TAT() == TAT.information
Loading

0 comments on commit aafbc20

Please sign in to comment.