aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDamien George2014-04-02 20:04:15 +0100
committerDamien George2014-04-02 20:04:15 +0100
commitc322c5f07f3a22e2c815bb9d4f3dcc5d6ace082a (patch)
tree52401b4841202e62f6b24dcbefeb32982ec41fb0 /tests
parenta05f5dd9528ba16df96d3ece581d5d0b2288b5ec (diff)
py: Fix regress for printing of floats and #if.
Also change formating modifier in test script (it still passes with original format though).
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/math-fun.py4
1 files changed, 2 insertions, 2 deletions
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)))