diff options
author | alon@honor <none@none> | 2010-09-24 20:47:55 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-09-24 20:47:55 -0700 |
commit | 05b2fafe901cf658c9f1acb80757f06453aacc62 (patch) | |
tree | 8d79a9d5277b24360c5b710627bc903850fb2bb6 /tests/runner.py | |
parent | 9352899596e6ee328824117031fc56fd2123336e (diff) |
floating point fixes +test
Diffstat (limited to 'tests/runner.py')
-rw-r--r-- | tests/runner.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py index 28f136ca..1149bfd9 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -153,11 +153,11 @@ class T(unittest.TestCase): #include <cmath> int main() { - printf("*%f\\n", M_PI); + printf("*%.2f,%.2f*\\n", M_PI, -M_PI); return 0; } ''' - self.do_test(src, '*3.14159') + self.do_test(src, '*3.14,-3.14*') def test_if(self): src = ''' |