diff --git a/binarycpython/tests/main.py b/binarycpython/tests/main.py old mode 100644 new mode 100755 index 4e6a1c292cd7ce11dabc1805b6ebb0c70b9a09d0..9d7e00f632b5b42ac96c21ced287609a3d7f622f --- a/binarycpython/tests/main.py +++ b/binarycpython/tests/main.py @@ -1,3 +1,4 @@ +#/usr/bin/env python """ Main file for the tests. This file imports all the combined_test functions from all files. """ diff --git a/binarycpython/tests/test_grid.py b/binarycpython/tests/test_grid.py index 6bda6842c16fec4558a0e298c7a5216dfefdb4ce..d64a9f0ce8f18e43d734456c82a45a2e2dce8c63 100644 --- a/binarycpython/tests/test_grid.py +++ b/binarycpython/tests/test_grid.py @@ -555,7 +555,7 @@ class test_grid_evolve(unittest.TestCase): analytics = test_pop_evolve_1_thread.evolve() self.assertLess( - np.abs(analytics["total_probability"] - 0.1503788456014623), 1e-10 + np.abs(analytics["total_probability"] - 0.1503788456014623), 1e-10, msg=analytics["total_probability"] ) self.assertTrue(analytics["total_count"] == 10) @@ -590,7 +590,7 @@ class test_grid_evolve(unittest.TestCase): analytics = test_pop.evolve() self.assertLess( - np.abs(analytics["total_probability"] - 0.1503788456014623), 1e-10 + np.abs(analytics["total_probability"] - 0.1503788456014623), 1e-10, msg=analytics["total_probability"] ) # self.assertTrue(analytics["total_count"] == 10) @@ -707,7 +707,7 @@ Printf("TEST_CUSTOM_LOGGING_1 %30.12e %g %g %g %g\\n", analytics = test_pop.evolve() self.assertLess( - np.abs(analytics["total_probability"] - 0.1503788456014623), 1e-10 + np.abs(analytics["total_probability"] - 0.1503788456014623), 1e-10, msg=analytics["total_probability"] ) # self.assertLess(np.abs(analytics["failed_prob"] - 0.1503788456014623), 1e-10) # self.assertEqual(analytics["failed_systems_error_codes"], [0])