Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit 557382e3 authored by Mathieu Giraud's avatar Mathieu Giraud

tests: testFilter.cpp, filter should filter out most of the V genes...

... but 10 is a good value :)
parent 16f0c36a
......@@ -348,7 +348,7 @@ void testGetNSignicativeKmers(){
BioReader filtered;
BioReader seqV("../../germline/homo-sapiens/IGHV.fa", 2);
string SIZE_ERROR = "Filtered size must be less than original one";
string SIZE_ERROR = "Filtered BioReader should be 10x smaller";
string GENE_NOT_FOUND = "Filtering sequence not found after filter";
for(int i = 0; i < seqV.size(); ++i){
......@@ -364,7 +364,7 @@ void testGetNSignicativeKmers(){
++j;
}
TAP_TEST(j < filtered.size(), TEST_FILTER_BIOREADER_WITH_AC_AUTOMATON, GENE_NOT_FOUND);
TAP_TEST(filtered.size() < seqV.size(), TEST_FILTER_BIOREADER_WITH_AC_AUTOMATON, SIZE_ERROR);
TAP_TEST(filtered.size() < seqV.size() / 10, TEST_FILTER_BIOREADER_WITH_AC_AUTOMATON, SIZE_ERROR + ", " + seq.label + ", " + string_of_int(filtered.size()) + "/" + string_of_int(seqV.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