tests/float: Fix cmath_fun_special for MICROPY_FLOAT_IMPL_FLOAT.

When the unix and windows ports use MICROPY_FLOAT_IMPL_FLOAT instead of
MICROPY_FLOAT_IMPL_DOUBLE, the test output has for example
complex(-0.15052, 0.34109) instead of the expected
complex(-0.15051, 0.34109).

Use one decimal place less for the output printing to fix this.
pull/5944/head
stijn 2020-04-01 11:02:11 +02:00 zatwierdzone przez Damien George
rodzic 0ba68f8a1d
commit 7fb9edf436
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -29,4 +29,4 @@ for f_name, f, test_vals in functions:
print(f_name)
for val in test_vals:
ret = f(val)
print("complex(%.5g, %.5g)" % (ret.real, ret.imag))
print("complex(%.4g, %.4g)" % (ret.real, ret.imag))