From c322c5f07f3a22e2c815bb9d4f3dcc5d6ace082a Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 2 Apr 2014 20:04:15 +0100 Subject: py: Fix regress for printing of floats and #if. Also change formating modifier in test script (it still passes with original format though). --- tests/basics/math-fun.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/basics') diff --git a/tests/basics/math-fun.py b/tests/basics/math-fun.py index eb80ab0f5..7a37c5845 100644 --- a/tests/basics/math-fun.py +++ b/tests/basics/math-fun.py @@ -34,7 +34,7 @@ functions = [('sqrt', sqrt, p_test_values), for function_name, function, test_vals in functions: print(function_name) for value in test_vals: - print("{:8.7g}".format(function(value))) + print("{:.7g}".format(function(value))) binary_functions = [('copysign', copysign, [(23., 42.), (-23., 42.), (23., -42.), (-23., -42.), (1., 0.0), (1., -0.0)]) @@ -43,4 +43,4 @@ binary_functions = [('copysign', copysign, [(23., 42.), (-23., 42.), (23., -42.) for function_name, function, test_vals in binary_functions: print(function_name) for value1, value2 in test_vals: - print("{:8.7g}".format(function(value1, value2))) + print("{:.7g}".format(function(value1, value2))) -- cgit v1.2.3