aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authormax99x <max99x@gmail.com>2011-07-08 11:46:20 +0300
committermax99x <max99x@gmail.com>2011-07-08 11:46:20 +0300
commitb84bb001de07d4c056e4d6546ab3ccd27291bb3e (patch)
tree0c353b58f037f5fe65150978741ee1dd452a54d3 /tests/runner.py
parentb5b48bab8bddb23a80031897d97f8942e702787a (diff)
Added hyperbolic math functions;
Fixed trailing zero stripping in 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 04856b8b..92430940 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -543,6 +543,11 @@ if 'benchmark' not in sys.argv:
'''
self.do_test(src, '*3.14,-3.14,inf,-inf*')
+ def test_math_hyperbolic(self):
+ src = open(path_from_root('tests', 'hyperbolic', 'src.c'), 'r').read()
+ expected = open(path_from_root('tests', 'hyperbolic', 'output.txt'), 'r').read()
+ self.do_test(src, expected)
+
def test_getgep(self):
# Generated code includes getelementptr (getelementptr, 0, 1), i.e., GEP as the first param to GEP
src = '''