Commit 10b0e66e authored by Mathieu Giraud's avatar Mathieu Giraud

tests: testing KmerAffect::sortLeftRight()

parent a15c5cd7
......@@ -176,6 +176,9 @@ void testAffectAnalyserMaxes() {
TAP_TEST(ckaa.max12(forbidden).first == gAffect, TEST_COUNT_AA_MAX12, "max1 is " << ckaa.max12(forbidden).first);
TAP_TEST(ckaa.max12(forbidden).second == cAffect, TEST_COUNT_AA_MAX12, "max2 is " << ckaa.max12(forbidden).second);
TAP_TEST(ckaa.sortLeftRight(ckaa.max12(forbidden)).first == cAffect, TEST_AA_SORT_LEFT_RIGHT, "bad max12, left");
TAP_TEST(ckaa.sortLeftRight(ckaa.max12(forbidden)).second == gAffect, TEST_AA_SORT_LEFT_RIGHT, "bad max12, right");
forbidden.insert(gAffect);
TAP_TEST(ckaa.max(forbidden) == cAffect, TEST_COUNT_AA_MAX, "max is " << ckaa.max(forbidden));
TAP_TEST(ckaa.max12(forbidden).first == cAffect, TEST_COUNT_AA_MAX12, "max1 is " << ckaa.max12(forbidden).first);
......
......@@ -78,6 +78,7 @@ enum {
TEST_COUNT_AA_LAST_MAX,
TEST_COUNT_AA_MAX,
TEST_COUNT_AA_MAX12,
TEST_AA_SORT_LEFT_RIGHT,
/* Cluster */
TEST_CLUSTER,
......
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