aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authormax99x <max99x@gmail.com>2011-06-27 10:10:40 +0300
committermax99x <max99x@gmail.com>2011-06-27 10:10:40 +0300
commit4c2ba0ca7dbfe4225359df4baad273350a68cf16 (patch)
tree1af754524fbfa2b39709ebbf101989c9181f040b /tests/runner.py
parentc3ab593294409ecc8199e32abe17609df5368782 (diff)
Implemented a GCC-alike printf/_formatString.
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index bba28e5a..7c6d45ec 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -1976,6 +1976,11 @@ if 'benchmark' not in sys.argv:
self.do_test(src, 'In func: 13*First calling main_fptr from lib.*Second calling lib_fptr from main.*Var: 42*',
output_nicerizer=lambda x: x.replace('\n', '*'))
+ def test_printf(self):
+ src = open(path_from_root('tests', 'printf', 'test.c'), 'r').read()
+ expected = open(path_from_root('tests', 'printf', 'output.txt'), 'r').read()
+ self.do_test(src, expected)
+
def test_files(self):
global CORRECT_SIGNS; CORRECT_SIGNS = 1 # Just so our output is what we expect. Can flip them both.
def post(filename):