Commit 413c4169 authored by Mikaël Salson's avatar Mikaël Salson

Tests: Test special case for getResults()

Sequence is shorter than the seed
parent 92fa9be6
......@@ -46,6 +46,10 @@ void testKmerStoreWithKmer(int k, int test_id) {
TAP_TEST(counts[j].count == counts2[j].count, test_id, "The count of kmers should be the same when reading in opposite ways" );
}
}
// Test with no result
vector<Kmer> counts = index->getResults("ATTA");
TAP_TEST(counts.size() == 0, test_id, "");
delete index;
delete index2;
......
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