aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-09-24 21:20:47 -0700
committeralon@honor <none@none>2010-09-24 21:20:47 -0700
commit597dde09b5788dc2728feb295983ae4c02b10dbb (patch)
treeb12ca12810577a11fdd90cbdc75a3501c469388c /tests
parent05b2fafe901cf658c9f1acb80757f06453aacc62 (diff)
Infinity and NaN
Diffstat (limited to 'tests')
-rw-r--r--tests/runner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 1149bfd9..519494ed 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -153,11 +153,11 @@ class T(unittest.TestCase):
#include <cmath>
int main()
{
- printf("*%.2f,%.2f*\\n", M_PI, -M_PI);
+ printf("*%.2f,%.2f,%f*\\n", M_PI, -M_PI, 1/0.0);
return 0;
}
'''
- self.do_test(src, '*3.14,-3.14*')
+ self.do_test(src, '*3.14,-3.14,Infinity*')
def test_if(self):
src = '''