From 018af634c87fea3b8ec55227ccc4bd73ccf42adf Mon Sep 17 00:00:00 2001
From: David Hendriks <davidhendriks93@gmail.com>
Date: Sun, 1 Aug 2021 20:59:44 +0100
Subject: [PATCH] updated tests

---
 binarycpython/tests/main.py      | 1 +
 binarycpython/tests/test_grid.py | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)
 mode change 100644 => 100755 binarycpython/tests/main.py

diff --git a/binarycpython/tests/main.py b/binarycpython/tests/main.py
old mode 100644
new mode 100755
index 4e6a1c292..9d7e00f63
--- 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 6bda6842c..d64a9f0ce 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])
-- 
GitLab