def test(extra_args):
    self.emcc_args = (old + extra_args)
    for precision in [0, 1, 2]:
        self.set_setting('PRECISE_F32', precision)
        for t in ['float', 'double']:
            print(precision, t)
            src = orig_src.replace('double', t)
            self.build(src, self.get_dir(), 'fasta.cpp')
            for (arg, output) in results:
                self.do_run('fasta.cpp.o.js', output, [str(arg)], (lambda x, err: x.replace('\n', '*')), no_build=True)
            shutil.copyfile('fasta.cpp.o.js', ('%d_%s.js' % (precision, t)))
def test(extra_args):
    self.emcc_args = (old + extra_args)
    for precision in [0, 1, 2]:
        self.set_setting('PRECISE_F32', precision)
        for t in ['float', 'double']:
            print(precision, t)
            src = orig_src.replace('double', t)
            self.build(src, self.get_dir(), 'fasta.cpp')
            for (arg, output) in results:
                self.do_run('fasta.cpp.o.js', output, [str(arg)], (lambda x, err: x.replace('\n', '*')), no_build=True)
            shutil.copyfile('fasta.cpp.o.js', ('%d_%s.js' % (precision, t)))