aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index f2137410..549e4691 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -1636,6 +1636,12 @@ if 'benchmark' not in sys.argv:
'''
self.do_test(src, '*1,2,3,5,5,6*\n*stdin==0:0*\n*%*\n*5*\n*66.0*\n*cleaned*')
+ def test_time(self):
+ src = open(path_from_root('tests', 'time', 'src.c'), 'r').read()
+ expected = open(path_from_root('tests', 'time', 'output.txt'), 'r').read()
+ self.do_test(src, expected)
+
+
def test_statics(self):
# static initializers save i16 but load i8 for some reason
global COMPILER_TEST_OPTS; COMPILER_TEST_OPTS = ['-g']