diff options
author | alon@honor <none@none> | 2010-08-28 18:24:52 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-08-28 18:24:52 -0700 |
commit | 73732309f32e7d98885fd2acf2031751d5b1c81a (patch) | |
tree | 9e2751d9a12d06b98f635d3d7a6e041957134d08 /tests/runner.py | |
parent | 22b8a96321ca0e284fb96916943286d7f4b49187 (diff) |
fcmp fix & better testing
Diffstat (limited to 'tests/runner.py')
-rw-r--r-- | tests/runner.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py index 4e550aba..d11487cf 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -159,11 +159,12 @@ class T(unittest.TestCase): { float x = 1.234, y = 3.5; y *= 3; - printf("*%d,%f,%d,%f\\n", int(y), y, (int)x, x); + int z = x < y; + printf("*%d,%d,%f,%d,%f\\n", z, int(y), y, (int)x, x); return 0; } ''' - self.do_test(src, '*10,10.5,1,1.2339') + self.do_test(src, '*1,10,10.5,1,1.2339') def test_if(self): src = ''' |