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

Remove loop while testing unknown K-mer presence

Since the map only contain one unknown k-mer it is useless to iterate over it
using a loop.
Also the tap_test method has been changed to the tap_test_equal because of the
equality comparison.
For more informations, see #3303.
parent 2e3edf3f
Pipeline #29925 passed with stages
in 28 minutes and 43 seconds
......@@ -114,9 +114,9 @@ void testGetMultiResults(){
If there is K-mers in automaton doesn't match the sequence, the map must
return only unknown K-mers.
*/
for(auto const& x : results){
TAP_TEST(x.first == AFFECT_UNKNOWN, TEST_AC_OCCURENCES, "Unknown Kmer not found");
}
pair<KmerAffect, int> singleResult = *(results.begin());
KmerAffect unknownKmerAffect = singleResult.first;
TAP_TEST_EQUAL(unknownKmerAffect, AFFECT_UNKNOWN, TEST_AC_OCCURENCES, "Unknown Kmer not found");
}
void testRCInsertAcAutomaton() {
......
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