diff options
| author | stijn <stijn@ignitron.net> | 2020-04-01 11:02:11 +0200 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2020-04-18 22:36:49 +1000 |
| commit | 7fb9edf43653d35d389a4604d7402c85540511a2 (patch) | |
| tree | b2a648b29d46510b6becd93bf47a5dfd8f71d075 | |
| parent | 0ba68f8a1dae84de950420aebf8ad46582a38e66 (diff) | |
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.
| -rw-r--r-- | tests/float/cmath_fun_special.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/float/cmath_fun_special.py b/tests/float/cmath_fun_special.py index 33b94d04d..e4c3c1774 100644 --- a/tests/float/cmath_fun_special.py +++ b/tests/float/cmath_fun_special.py @@ -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)) |
