use fasta names
This commit is contained in:
Родитель
91db790951
Коммит
9b8e4488d7
|
@ -12684,7 +12684,7 @@ elif 'benchmark' in str(sys.argv):
|
|||
'''
|
||||
self.do_benchmark('corrections', src, [], 'final: 40006013:10225.', emcc_args=['-s', 'CORRECT_SIGNS=1', '-s', 'CORRECT_OVERFLOWS=1', '-s', 'CORRECT_ROUNDINGS=1'])
|
||||
|
||||
def fasta(self, double_rep, emcc_args=[]):
|
||||
def fasta(self, name, double_rep, emcc_args=[]):
|
||||
src = open(path_from_root('tests', 'fasta.cpp'), 'r').read().replace('double', double_rep)
|
||||
src = src.replace(' const size_t n = ( argc > 1 ) ? atoi( argv[1] ) : 512;', '''
|
||||
int n;
|
||||
|
@ -12703,13 +12703,13 @@ elif 'benchmark' in str(sys.argv):
|
|||
self.do_benchmark('fasta', src, [], '''GGCCGGGCGCGGTGGCTCACGCCTGTAATCCCAGCACTTTGGGAGGCCGAGGCGGGCGGA\nTCACCTGAGGTCAGGAGTTCGAGACCAGCCTGGCCAACATGGTGAAACCCCGTCTCTACT\nAAAAATACAAAAATTAGCCGGGCGTGGTGGCGCGCGCCTGTAATCCCAGCTACTCGGGAG\nGCTGAGGCAGGAGAATCGCTTGAACCCGGGAGGCGGAGGTTGCAGTGAGCCGAGATCGCG\nCCACTGCACTCCAGCCTGGGCGACAGAGCGAGACTCCGTCTCAAAAAGGCCGGGCGCGGT\nGGCTCACGCCTGTAATCCCAGCACTTTGGGAGGCCGAGGCGGGCGGATCACCTGAGGTCA\nGGAGTTCGAGACCAGCCTGGCCAACATGGTGAAACCCCGTCTCTACTAAAAATACAAAAA\nTTAGCCGGGCGTGGTGGCGCGCGCCTGTAATCCCAGCTACTCGGGAGGCTGAGGCAGGAG\nAATCGCTTGAACCCGGGAGGCGGAGGTTGCAGTGAGCCGAGATCGCGCCACTGCACTCCA\nGCCTGGGCGA''')
|
||||
|
||||
def test_fasta_float(self):
|
||||
self.fasta('float')
|
||||
self.fasta('fasta_float', 'float')
|
||||
|
||||
def test_fasta_double(self):
|
||||
self.fasta('double')
|
||||
self.fasta('fasta_double', 'double')
|
||||
|
||||
def test_fasta_double_full(self):
|
||||
self.fasta('double', emcc_args=['-s', 'DOUBLE_MODE=1'])
|
||||
self.fasta('fasta_double_full', 'double', emcc_args=['-s', 'DOUBLE_MODE=1'])
|
||||
|
||||
def test_skinning(self):
|
||||
src = open(path_from_root('tests', 'skinning_test_no_simd.cpp'), 'r').read()
|
||||
|
|
Загрузка…
Ссылка в новой задаче