aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-10-15 17:31:45 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-10-17 12:44:20 -0700
commitcede7ac99f308666bcfd64b491c705c1b20a0346 (patch)
treece7ce89362c4ead6460e9a875d1f95faaac22e57 /tests/runner.py
parent34240fec4adc3316920a269478f84b3dbebca78b (diff)
add sscanf support for 'i'
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index c61fee3a..8e1eaeba 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -4264,13 +4264,20 @@ at function.:blag
printf("%d\n", sscanf("-123 -765 -34-6", "%d %u %d", &neg, &neg2, &neg3));
printf("%d,%u,%d\n", neg, neg2, neg3);
+ {
+ int a = 0;
+ sscanf("1", "%i", &a);
+ printf("%i\n", a);
+ }
+
return 0;
}
'''
self.do_run(src, 'en-us : 2\nen-r : 99\nen : 3\n1.234567, 0.000000\n2.8208\n-3.0300\n|some|\n|something|\n|somethingmoar|\n' +
'1\n1499\n' +
'5\n87,0.481565,0.059481,0,1\n' +
- '3\n-123,4294966531,-34\n')
+ '3\n-123,4294966531,-34\n' +
+ '1\n')
def test_sscanf_2(self):
# doubles