Permalink
Browse files

Continuing to experiment with Python's unittest implementation.

  • Loading branch information...
johnkerl committed Aug 7, 2012
1 parent a3ea602 commit 2e37c4e91515b3ed33f4a47366f0c1651c544a53
Showing with 1,122 additions and 119 deletions.
  1. +39 −0 T_tm.py
  2. +39 −0 cgpalg_dense_tm.py
  3. +51 −0 cgpalg_tm.py
  4. +51 −0 cl2_tm.py
  5. +51 −0 cl2m_tm.py
  6. +39 −0 dih_tm.py
  7. +32 −0 f2poly_tm.py
  8. +118 −118 f2polymod_tm.py
  9. +39 −0 genquat_tm.py
  10. +48 −0 gint_tm.py
  11. +53 −0 ispec_tm.py
  12. +42 −0 metacyc_tm.py
  13. +27 −0 mktestskel
  14. +63 −0 mod_tm.py
  15. +51 −0 modadd_tm.py
  16. +60 −0 modmul_tm.py
  17. +57 −0 pauli_tm.py
  18. +1 −1 pmtc_tm.py
  19. +111 −0 pmti_tm.py
  20. +51 −0 quatu_tm.py
  21. +60 −0 spec_tm.py
  22. +39 −0 v4_tm.py
View
39 T_tm.py
@@ -66,3 +66,42 @@ def from_string(value_string, params_string):
obj = T_t(0, 0)
obj.scan(value_string)
return obj
+
+
+# ================================================================
+import unittest
+if __name__ == '__main__':
+
+ class test_cases(unittest.TestCase):
+ def test___init__(self):
+ pass # to be implemented
+
+ def test___eq__(self):
+ pass # to be implemented
+
+ def test___ne__(self):
+ pass # to be implemented
+
+ def test___mul__(self):
+ pass # to be implemented
+
+ def test_inv(self):
+ pass # to be implemented
+
+ def test_scan(self):
+ pass # to be implemented
+
+ def test___str__(self):
+ pass # to be implemented
+
+ def test___repr__(self):
+ pass # to be implemented
+
+ def test_params_from_string(self):
+ pass # to be implemented
+
+ def test_from_string(self):
+ pass # to be implemented
+
+ # ----------------------------------------------------------------
+ unittest.main()
View
@@ -145,3 +145,42 @@ def __repr__(self):
# obj = cgpalg_t([1], [1])
# obj.scan(value_string, cgpalg_array)
# return obj
+
+
+# ================================================================
+import unittest
+if __name__ == '__main__':
+
+ class test_cases(unittest.TestCase):
+ def test___init__(self):
+ pass # to be implemented
+
+ def test___add__(self):
+ pass # to be implemented
+
+ def test___sub__(self):
+ pass # to be implemented
+
+ def test_index_of(self):
+ pass # to be implemented
+
+ def test___mul__(self):
+ pass # to be implemented
+
+ def test___eq__(self):
+ pass # to be implemented
+
+ def test___ne__(self):
+ pass # to be implemented
+
+ def test___neg__(self):
+ pass # to be implemented
+
+ def test___str__(self):
+ pass # to be implemented
+
+ def test___repr__(self):
+ pass # to be implemented
+
+ # ----------------------------------------------------------------
+ unittest.main()
View
@@ -197,3 +197,54 @@ def from_pmtns_with_parity(pmtn_array):
# obj = cgpalg_t([1], [1])
# obj.scan(value_string, cgpalg_array)
# return obj
+
+
+# ================================================================
+import unittest
+if __name__ == '__main__':
+
+ class test_cases(unittest.TestCase):
+ def test___init__(self):
+ pass # to be implemented
+
+ def test_index_of(self):
+ pass # to be implemented
+
+ def test_zero_strip(self):
+ pass # to be implemented
+
+ def test_to_coef_array(self):
+ pass # to be implemented
+
+ def test___add__(self):
+ pass # to be implemented
+
+ def test___neg__(self):
+ pass # to be implemented
+
+ def test___sub__(self):
+ pass # to be implemented
+
+ def test___mul__(self):
+ pass # to be implemented
+
+ def test_inv(self):
+ pass # to be implemented
+
+ def test___div__(self):
+ pass # to be implemented
+
+ def test___str__(self):
+ pass # to be implemented
+
+ def test___repr__(self):
+ pass # to be implemented
+
+ def test_from_pmtns(self):
+ pass # to be implemented
+
+ def test_from_pmtns_with_parity(self):
+ pass # to be implemented
+
+ # ----------------------------------------------------------------
+ unittest.main()
View
@@ -137,3 +137,54 @@ def from_string(value_string, params_string):
#a = cl2_t(1, 0x66, 8)
#b = cl2_t(1, 0x35, 8)
#c = a * b
+
+
+# ================================================================
+import unittest
+if __name__ == '__main__':
+
+ class test_cases(unittest.TestCase):
+ def test___init__(self):
+ pass # to be implemented
+
+ def test___mul__(self):
+ pass # to be implemented
+
+ def test___eq__(self):
+ pass # to be implemented
+
+ def test___ne__(self):
+ pass # to be implemented
+
+ def test___lt__(self):
+ pass # to be implemented
+
+ def test___le__(self):
+ pass # to be implemented
+
+ def test___gt__(self):
+ pass # to be implemented
+
+ def test___ge__(self):
+ pass # to be implemented
+
+ def test_inv(self):
+ pass # to be implemented
+
+ def test_scan(self):
+ pass # to be implemented
+
+ def test___str__(self):
+ pass # to be implemented
+
+ def test___repr__(self):
+ pass # to be implemented
+
+ def test_params_from_string(self):
+ pass # to be implemented
+
+ def test_from_string(self):
+ pass # to be implemented
+
+ # ----------------------------------------------------------------
+ unittest.main()
View
@@ -103,3 +103,54 @@ def from_string(value_string, params_string):
#a = cl2m_t(1, 0x66, 8)
#b = cl2m_t(1, 0x35, 8)
#c = a * b
+
+
+# ================================================================
+import unittest
+if __name__ == '__main__':
+
+ class test_cases(unittest.TestCase):
+ def test___init__(self):
+ pass # to be implemented
+
+ def test___mul__(self):
+ pass # to be implemented
+
+ def test___eq__(self):
+ pass # to be implemented
+
+ def test___ne__(self):
+ pass # to be implemented
+
+ def test___lt__(self):
+ pass # to be implemented
+
+ def test___le__(self):
+ pass # to be implemented
+
+ def test___gt__(self):
+ pass # to be implemented
+
+ def test___ge__(self):
+ pass # to be implemented
+
+ def test_inv(self):
+ pass # to be implemented
+
+ def test_scan(self):
+ pass # to be implemented
+
+ def test___str__(self):
+ pass # to be implemented
+
+ def test___repr__(self):
+ pass # to be implemented
+
+ def test_params_from_string(self):
+ pass # to be implemented
+
+ def test_from_string(self):
+ pass # to be implemented
+
+ # ----------------------------------------------------------------
+ unittest.main()
View
@@ -65,3 +65,42 @@ def from_string(value_string, params_string):
obj = dih_t(0, 0, n)
obj.scan(value_string, n)
return obj
+
+
+# ================================================================
+import unittest
+if __name__ == '__main__':
+
+ class test_cases(unittest.TestCase):
+ def test___init__(self):
+ pass # to be implemented
+
+ def test___eq__(self):
+ pass # to be implemented
+
+ def test___ne__(self):
+ pass # to be implemented
+
+ def test___mul__(self):
+ pass # to be implemented
+
+ def test_inv(self):
+ pass # to be implemented
+
+ def test_scan(self):
+ pass # to be implemented
+
+ def test___str__(self):
+ pass # to be implemented
+
+ def test___repr__(self):
+ pass # to be implemented
+
+ def test_params_from_string(self):
+ pass # to be implemented
+
+ def test_from_string(self):
+ pass # to be implemented
+
+ # ----------------------------------------------------------------
+ unittest.main()
View
@@ -406,3 +406,35 @@ def __repr__(self):
# return this->zcount_one_bits()
# else
# return this->parts[0] & 1
+
+# ================================================================
+import unittest
+if __name__ == '__main__':
+
+ class test_cases(unittest.TestCase):
+ def test_f2poly_from_string(self):
+ pass # to be implemented
+
+ def test_idegree(self):
+ pass # to be implemented
+
+ def test_imul(self):
+ pass # to be implemented
+
+ def test_iquot_and_rem(self):
+ pass # to be implemented
+
+ def test_imod(self):
+ pass # to be implemented
+
+ def test_iexp(self):
+ pass # to be implemented
+
+ def test_igcd(self):
+ pass # to be implemented
+
+ def test_iext_gcd(self):
+ pass # to be implemented
+
+ # ----------------------------------------------------------------
+ unittest.main()
Oops, something went wrong.

0 comments on commit 2e37c4e

Please sign in to comment.