Commit ac62bd81 authored by Cyprien Borée's avatar Cyprien Borée
Browse files

Use Filter object in testAutomatonBuilderFilteringBioReader

Since the function testAutomatonBuilderFilteringBioReader 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 d82db39c
......@@ -160,6 +160,7 @@ void testAutomatonBuilderFilteringBioReader(){
vector<int> expectedIndexes1;
vector<int> expectedIndexes2;
vector<int> expectedIndexes3;
FilterWithACAutomaton *f1, *f2, *f3;
seqtype seq;
KmerAffect k;
char asciiChar;
......@@ -179,9 +180,13 @@ void testAutomatonBuilderFilteringBioReader(){
expectedIndexes2 = getDebugIndexes2();
expectedIndexes3 = getDebugIndexes3();
pair1 = buildACAutomatonToFilterBioReader(testedBioReader1, "####");
pair2 = buildACAutomatonToFilterBioReader(testedBioReader2, "####");
pair3 = buildACAutomatonToFilterBioReader(testedBioReader3, "####");
f1 = new FilterWithACAutomaton(testedBioReader1,"####");
f2 = new FilterWithACAutomaton(testedBioReader2,"####");
f3 = new FilterWithACAutomaton(testedBioReader3,"####");
pair1 = f1->getPair();
pair2 = f2->getPair();
pair3 = f3->getPair();
/* test indexes size */
TAP_TEST_EQUAL(pair1->first->size(), expectedIndexes1.size(),
......
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