From 539681fffd96082ca3b5d18643d4f08f65c47170 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 5 Jul 2014 06:14:29 +0100 Subject: tests: Rename test scripts, changing - to _ for consistency. From now on, all new tests must use underscore. Addresses issue #727. --- tests/float/math_fun_bool.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/float/math_fun_bool.py (limited to 'tests/float/math_fun_bool.py') diff --git a/tests/float/math_fun_bool.py b/tests/float/math_fun_bool.py new file mode 100644 index 000000000..57232857a --- /dev/null +++ b/tests/float/math_fun_bool.py @@ -0,0 +1,17 @@ +# Test the bool functions from math + +try: + from math import isfinite, isnan, isinf +except ImportError: + print("SKIP") + import sys + sys.exit() + +test_values = [1, 0, -1, 1.0, 0.0, -1.0, float('NaN'), float('Inf'), + -float('NaN'), -float('Inf')] + +functions = [isfinite, isnan, isinf] + +for val in test_values: + for f in functions: + print(f(val)) -- cgit v1.2.3