diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-02-18 18:21:17 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-02-18 18:21:17 -0800 |
commit | c405f9975858e4ad7da41a116c899999fd811fd9 (patch) | |
tree | acd65b50867c0e81ed8353450a78d5efdc2e2887 | |
parent | 7ef5d0650a2f3d9ff012fc36922107ea85e493e6 (diff) |
add toupper_l test
-rw-r--r-- | tests/test_core.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index bdbafde7..e598655d 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -2339,6 +2339,7 @@ The current type of b is: 9 src = ''' #include <stdio.h> #include <stdlib.h> + #include <ctype.h> #include <sys/time.h> void clean() @@ -2383,11 +2384,13 @@ The current type of b is: 9 printf("*malloc(0)!=0:%d*\\n", malloc(0) != 0); // We should not fail horribly + printf("tolower_l: %c\\n", tolower_l('A', 0)); + return 0; } ''' - self.do_run(src, '*1,2,3,5,5,6*\n*stdin==0:0*\n*%*\n*5*\n*66.0*\n*10*\n*0*\n*-10*\n*18*\n*10*\n*0*\n*4294967286*\n*malloc(0)!=0:1*\n*cleaned*') + self.do_run(src, '*1,2,3,5,5,6*\n*stdin==0:0*\n*%*\n*5*\n*66.0*\n*10*\n*0*\n*-10*\n*18*\n*10*\n*0*\n*4294967286*\n*malloc(0)!=0:1*\ntolower_l: a\n*cleaned*') src = r''' #include <stdio.h> |