diff options
author | max99x <max99x@gmail.com> | 2011-07-03 07:36:10 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-07-03 07:36:10 +0300 |
commit | 48a2a87ebac0836508b85bfe82be24f325487a54 (patch) | |
tree | 68cc988942cd39e946336b5864e46069852eef1e /tests/runner.py | |
parent | 5356a8857b4db69b32fbae4c678c3d20235f5fb2 (diff) |
Implemented a large part of <time.h>.
Diffstat (limited to 'tests/runner.py')
-rw-r--r-- | tests/runner.py | 6 |
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'] |