test_create_matrix.py 496 B

1234567891011121314151617181920
  1. import unittest
  2. import utils
  3. class TestCreateMatrix(unittest.TestCase):
  4. def test_po_create_matrix(self):
  5. self.create_matrix("PO")
  6. def test_co_create_matrix(self):
  7. self.create_matrix("CO")
  8. def create_matrix(self, mode):
  9. print(
  10. utils.run_file_single_output(
  11. ["test_harness.alc", "matrix.alc",
  12. "create_matrix.alc", "primitives.alc",
  13. "random.alc"],
  14. [100, 0],
  15. mode))