aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2010-12-25 23:48:05 -0800
committerAlon Zakai <azakai@mozilla.com>2010-12-25 23:48:05 -0800
commitd5672aba5ef2d0fae7ab1759c0828234966bd0d9 (patch)
treea1ae01d331d5b62631b0294e6aa73297fa4c4ca1 /tests/runner.py
parent025d25c187f2daf9bb507b72ab85db47904af977 (diff)
support for precision in integers in printf
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 5a9ccc7a..cc1b1309 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -238,11 +238,12 @@ if 'benchmark' not in sys.argv:
printf(",");
}
printf("*\\n");
+ printf("*%.1d,%.2d*\\n", 56, 9);
printf("*%ld*%p\\n", (long)21, &hash); // The %p should not enter an infinite loop!
return 0;
}
'''
- self.do_test(src, '*5,23,10,19,121,1,37,1,0*\n0:-1,1:134217727,2:4194303,3:131071,4:4095,5:127,6:3,7:0,8:0*\n*21*')
+ self.do_test(src, '*5,23,10,19,121,1,37,1,0*\n0:-1,1:134217727,2:4194303,3:131071,4:4095,5:127,6:3,7:0,8:0*\n*56,09*\n*21*')
def test_unsigned(self):
src = '''