From 00be8bc06afcedbd15de85bfdfaae66a036e07d5 Mon Sep 17 00:00:00 2001 From: Thomas Applencourt Date: Tue, 31 Mar 2015 13:31:43 +0200 Subject: [PATCH] precision for unit test set to 5.e-8 --- tests/unit_test/unit_test.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/unit_test/unit_test.py b/tests/unit_test/unit_test.py index 8a753754..47155776 100755 --- a/tests/unit_test/unit_test.py +++ b/tests/unit_test/unit_test.py @@ -17,7 +17,7 @@ from collections import defaultdict # O p t # # ~#~#~ # -precision = 1.e-8 +precision = 5.e-8 # A test get a geo file and a basis file. # A global dict containt the result for this test @@ -31,6 +31,7 @@ precision = 1.e-8 global has_hf_alredy has_hf_alredy = False + def init_folder(geo, basis, mult=1): ''' Take a geo in arg (aka a existing geo.xyz in test/) @@ -48,7 +49,8 @@ def init_folder(geo, basis, mult=1): def get_error_message(l_exepected, l_cur): - l_msg = ["Need {0} get {1}".format(i,j) for i,j in zip(l_exepected,l_cur)] + l_msg = ["Need {0} get {1} error is {2}".format(i, j, abs(i - j)) + for i, j in zip(l_exepected, l_cur)] return "\n".join(l_msg)