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

Remove useless pair and add deletion for testFilter

A useless pair was still in a test in testFilter.
Also the pointer for the Filter object is deleted in the end.

For more informations, see #3283
parent cd5bdd8c
......@@ -385,7 +385,6 @@ void testExAequoKmersWhenSignificantParameter(){
BioReader testedBioReader, filtered;
FilterWithACAutomaton *f;
seqtype seq;
pair<vector<int>*, AbstractACAutomaton<KmerAffect>*>* p;
string BIOREADER_EXAEQUO = "BioReader doesn't have ex-aequo";
string SIZE_BIOREADER = "BioReader doesn't contain the good amount of sequences";
Sequence sequences[13];
......@@ -408,7 +407,6 @@ void testExAequoKmersWhenSignificantParameter(){
f = new FilterWithACAutomaton(testedBioReader, "####");
p = f->getPair();
/* Filter using the 2 most significant K-mers, the first one is belonging to
sequence n°11 (with more than 60 occurences) and second one is sequence n°5
and n°10 appearing 29 times both. */
......@@ -464,6 +462,7 @@ void testBehaviourWhenHugeBioReader(){
p = f->getPair();
"Automaton should not be constructed on a BioReader containing more than 127 sequences.");
delete f;
void testFilter(){
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