aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 70f7ba9d..c7a53e25 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -1487,6 +1487,20 @@ c5,de,15,8a
'''
self.do_run(src, '4:10,177,543,def\n4\nwowie\ntoo\n76\n5\n(null)\n/* a comment */\n// another\ntest\n', ['wowie', 'too', '74'])
+ def test_strcmp_uni(self):
+ src = '''
+ #include <stdio.h>
+ #include <string.h>
+ int main()
+ {
+ char *word = "WORD";
+ char *wordEntry = "Â";
+ int cmp = strncmp(word, wordEntry, 2);
+ printf("Compare value is %d\\n", cmp);
+ }
+ '''
+ self.do_run(src, 'Compare value is -1\n')
+
def test_strndup(self):
src = '''
//---------------