Commit 204400b8 authored by Cyprien Borée's avatar Cyprien Borée Committed by Mikaël Salson
Browse files

Use Filter object in testBehaviourWhenHugeBioReader

Since the function testBehaviourWhenHugeBioReader in testFilter was
using pair and not Filter object, it now use the filter object getter for
the pair.

For more informations, see #3283.
parent 028c15ad
...@@ -462,10 +462,12 @@ void testExAequoKmersWhenSignificantParameter(){ ...@@ -462,10 +462,12 @@ void testExAequoKmersWhenSignificantParameter(){
void testBehaviourWhenHugeBioReader(){ void testBehaviourWhenHugeBioReader(){
BioReader hugeBioReader; BioReader hugeBioReader;
FilterWithACAutomaton *f;
hugeBioReader.add("../../germline/homo-sapiens/IGHV.fa"); hugeBioReader.add("../../germline/homo-sapiens/IGHV.fa");
hugeBioReader.add("../../germline/homo-sapiens/IGLV.fa"); hugeBioReader.add("../../germline/homo-sapiens/IGLV.fa");
pair<vector<int>*,AbstractACAutomaton<KmerAffect>*>* p; pair<vector<int>*,AbstractACAutomaton<KmerAffect>*>* p;
p = buildACAutomatonToFilterBioReader(hugeBioReader, "#########"); f = new FilterWithACAutomaton(hugeBioReader, "#########");
p = f->getPair();
TAP_TEST(!p, TEST_FILTER_BIOREADER_WITH_AC_AUTOMATON, TAP_TEST(!p, TEST_FILTER_BIOREADER_WITH_AC_AUTOMATON,
"Automaton should not be constructed on a BioReader containing more than 127 sequences."); "Automaton should not be constructed on a BioReader containing more than 127 sequences.");
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment