diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2020-06-03 12:19:20 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-03 12:19:20 -0700 |
| commit | 547beb5d4740f8e5b5db5d57a7544a4b765ef0c5 (patch) | |
| tree | 5b445330d04a03f517dc490b53c87f9c5a5e7516 /tests/float | |
| parent | 01e294536c3ca36a8c9ad0e3b2c14adb5c2b85b5 (diff) | |
| parent | 79cd86445ee352861a68d395114a15c3cd4edee5 (diff) | |
Merge pull request #2981 from Flameeyes/master
Set up basic integration with pre-commit.
Diffstat (limited to 'tests/float')
| -rw-r--r-- | tests/float/builtin_float_minmax.py | 1 | ||||
| -rw-r--r-- | tests/float/float_struct.py | 1 | ||||
| -rw-r--r-- | tests/float/math_fun_bool.py | 2 |
3 files changed, 1 insertions, 3 deletions
diff --git a/tests/float/builtin_float_minmax.py b/tests/float/builtin_float_minmax.py index 266ed133d..8a53746e5 100644 --- a/tests/float/builtin_float_minmax.py +++ b/tests/float/builtin_float_minmax.py @@ -29,4 +29,3 @@ print(min([1, 2.9, 4, 6.5, -1, 2])) print(max([1, 2.9, 4, 6.5, -1, 2])) print(min([1, 2.9, 4, -6.5, -1, 2])) print(max([1, 2.9, 4, -6.5, -1, 2])) - diff --git a/tests/float/float_struct.py b/tests/float/float_struct.py index c4c186b89..dd7a418ad 100644 --- a/tests/float/float_struct.py +++ b/tests/float/float_struct.py @@ -15,4 +15,3 @@ for fmt in ('f', 'd', '>f', '>d', '<f', '<d'): x = struct.pack(fmt, i) v = struct.unpack(fmt, x)[0] print('%2s: %.17f - %s' % (fmt, v, (i == v) and 'passed' or 'failed')) - diff --git a/tests/float/math_fun_bool.py b/tests/float/math_fun_bool.py index 30ab14a52..761871b41 100644 --- a/tests/float/math_fun_bool.py +++ b/tests/float/math_fun_bool.py @@ -6,7 +6,7 @@ except ImportError: print("SKIP") raise SystemExit -test_values = [1, 0, -1, 1.0, 0.0, -1.0, float('NaN'), float('Inf'), +test_values = [1, 0, -1, 1.0, 0.0, -1.0, float('NaN'), float('Inf'), -float('NaN'), -float('Inf')] functions = [isfinite, isnan, isinf] |
