aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-25 13:09:29 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-10-25 13:09:29 -0700
commit6a6bb771d6d7786064331afab47943d65b0d4fd6 (patch)
tree5452e18bfcb929244fa2a68190b03c8ab899d7ee /tests
parent84f9bc30e322b878011e866989dfe68619643e16 (diff)
add fasta_float test
Diffstat (limited to 'tests')
-rw-r--r--tests/test_core.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index dd5b1e39..74569c7f 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -8305,6 +8305,12 @@ extern "C" {
src = open(path_from_root('tests', 'fasta.cpp'), 'r').read()
self.do_run(src, j, [str(i)], lambda x, err: x.replace('\n', '*'), no_build=i>1)
+ if Settings.ASM_JS:
+ # test float support in asm
+ i, j = results[-1]
+ src = open(path_from_root('tests', 'fasta.cpp'), 'r').read().replace('double', 'float')
+ self.do_run(src, j, [str(i)], lambda x, err: x.replace('\n', '*'))
+
def test_whets(self):
if not Settings.ASM_JS: return self.skip('mainly a test for asm validation here')
self.do_run(open(path_from_root('tests', 'whets.cpp')).read(), 'Single Precision C Whetstone Benchmark')