aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormax99x <max99x@gmail.com>2011-07-13 23:32:26 +0300
committermax99x <max99x@gmail.com>2011-07-13 23:32:26 +0300
commit81c4df8f8b894ea1d34c6eb6a1bc72d752e2ca1f (patch)
tree6fd7f9f45970de67086510e30c04398475d18666
parent3159de633f092bbd48a4f644d71a8673222714b5 (diff)
Micro-improvement for the infinity test.
-rw-r--r--tests/runner.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 58f96db4..00f12f3f 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -540,15 +540,17 @@ if 'benchmark' not in sys.argv:
printf("*%.2f,%.2f,%f,%f", M_PI, -M_PI, 1/0.0, -1/0.0);
printf(",%d", finite(NAN));
printf(",%d", finite(INFINITY));
+ printf(",%d", finite(-INFINITY));
printf(",%d", finite(12.3));
printf(",%d", isinf(NAN));
printf(",%d", isinf(INFINITY));
+ printf(",%d", isinf(-INFINITY));
printf(",%d", isinf(12.3));
printf("*\\n");
return 0;
}
'''
- self.do_test(src, '*3.14,-3.14,inf,-inf,0,0,1,0,1,0')
+ self.do_test(src, '*3.14,-3.14,inf,-inf,0,0,0,1,0,1,1,0*')
def test_math_hyperbolic(self):
src = open(path_from_root('tests', 'hyperbolic', 'src.c'), 'r').read()