diff options
author | alon@honor <none@none> | 2010-09-30 21:02:30 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-09-30 21:02:30 -0700 |
commit | cbea94c15230599f0f909329783e08f6713e766c (patch) | |
tree | c4bd49e9b6e29255143b76d18e7739103a3e6e6e /tests/runner.py | |
parent | 13e243c8cb9e4d91bc74d927fc2eabd4938c97a8 (diff) |
optional stricter support for unsigned values +test
Diffstat (limited to 'tests/runner.py')
-rw-r--r-- | tests/runner.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index 08560fd8..8b71b223 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -132,6 +132,19 @@ class T(unittest.TestCase): ''' self.do_test(src, '*5,23,10,19,121,1,37,1,0*') + def test_unsigned(self): + src = ''' + #include <stdio.h> + int main() + { + int varey = 100; + unsigned int MAXEY = -1, MAXEY2 = -77; + printf("*%u,%d,%u*\\n", MAXEY, varey >= MAXEY, MAXEY2); // 100 >= -1? not in unsigned! + return 0; + } + ''' + self.do_test(src, '*4294967295,0,4294967219*') + def test_floatvars(self): src = ''' #include <stdio.h> |