diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-23 15:10:47 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-23 15:10:47 -0800 |
commit | 7bcb06708962ca4bd04add9d1c148869931a1c94 (patch) | |
tree | f986c15e80afb26ac8075dc8a6293c6666ee4571 /tests | |
parent | 408def0b2f1f69bf25dc708942e4846076f7d664 (diff) |
fix asm float notation for numbers less than 1 in absolute value
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runner.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py index 4b4b012a..d876d8f9 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -1543,7 +1543,7 @@ Succeeded! src = ''' #include <stdio.h> #include <math.h> - int main() + int main(int argc, char **argv) { float x = 1.234, y = 3.5, q = 0.00000001; y *= 3; @@ -1552,6 +1552,8 @@ Succeeded! printf("%.2f, %.2f, %.2f, %.2f\\n", fmin(0.5, 3.3), fmin(NAN, 3.3), fmax(0.5, 3.3), fmax(NAN, 3.3)); + printf("small: %.10f\\n", argc * 0.000001); + /* // Rounding behavior float fs[6] = { -2.75, -2.50, -2.25, 2.25, 2.50, 2.75 }; @@ -1563,7 +1565,7 @@ Succeeded! return 0; } ''' - self.do_run(src, '*1,10,10.5,1,1.2340,0.00*\n0.50, 3.30, 3.30, 3.30\n') + self.do_run(src, '*1,10,10.5,1,1.2340,0.00*\n0.50, 3.30, 3.30, 3.30\nsmall: 0.0000010000\n') def test_isnan(self): src = r''' |