aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-07-19 20:57:29 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-07-19 20:57:29 -0700
commita4d8b7c20f255fa4218a641ea50cbfd327b055b8 (patch)
tree616dba8333b0750b82959ae6e18237a12aaf1b7f /tests
parent570cf436e48edfa021b54ab148586caf5307ed3e (diff)
fix strstr
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runner.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 46caef9a..1ad8f3a3 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -4009,6 +4009,9 @@ at function.:blag
printf("%d\n", !!strstr("cheezy", "y"));
printf("%d\n", !!strstr("cheezy", "z"));
printf("%d\n", !!strstr("cheezy", "_"));
+
+ const char *str = "a big string";
+ printf("%d\n", strstr(str, "big") - str);
return 0;
}
'''
@@ -4035,6 +4038,7 @@ at function.:blag
1
1
0
+2
''')
def test_sscanf(self):