Commit 86e9c652 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

Tests: Update tests from CountKmerAffectAnalyser.

On failure firstMax and lastMax now return -1
parent 1e3900b1
......@@ -68,18 +68,18 @@ void testAffectAnalyser1() {
// Test affectation with two affects that are not in the sequence
KAffect aAffect = KAffect("", seq[5], 1);
KAffect tAffect = KAffect("", seq[7], 1);
TAP_TEST(ckaa.firstMax(aAffect, tAffect) == 0, TEST_COUNT_AA_FIRST_MAX, "");
TAP_TEST(ckaa.lastMax(aAffect, tAffect) == ckaa.count() - 1,
TAP_TEST(ckaa.firstMax(aAffect, tAffect) == -1, TEST_COUNT_AA_FIRST_MAX, "");
TAP_TEST(ckaa.lastMax(aAffect, tAffect) == - 1,
TEST_COUNT_AA_LAST_MAX, "");
// Test affectation with one affect not in the sequence
TAP_TEST(ckaa.firstMax(cAffect, tAffect) == 6, TEST_COUNT_AA_FIRST_MAX, "");
TAP_TEST(ckaa.lastMax(cAffect, tAffect) == ckaa.count()-1,
TAP_TEST(ckaa.firstMax(cAffect, tAffect) == -1, TEST_COUNT_AA_FIRST_MAX, "");
TAP_TEST(ckaa.lastMax(cAffect, tAffect) == -1,
TEST_COUNT_AA_LAST_MAX, "");
TAP_TEST(ckaa.firstMax(aAffect, gAffect) == 0, TEST_COUNT_AA_FIRST_MAX, "");
TAP_TEST(ckaa.lastMax(aAffect, gAffect) == 8, TEST_COUNT_AA_LAST_MAX, "");
TAP_TEST(ckaa.firstMax(aAffect, gAffect) == -1, TEST_COUNT_AA_FIRST_MAX, "");
TAP_TEST(ckaa.lastMax(aAffect, gAffect) == -1, TEST_COUNT_AA_LAST_MAX, "");
delete index;
}
......
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