Commit c9b3402a authored by Mikaël Salson's avatar Mikaël Salson

Tests: Test CountKmerAffectAnalyser::getAllowedOverlap

parent 5bccc98d
......@@ -12,12 +12,14 @@ void testAffectAnalyser1() {
string sequence = "AAAACCCCCGGGGG";
KmerAffectAnalyser<KAffect> kaa(*index, sequence);
CountKmerAffectAnalyser<KAffect> ckaa(*index, sequence);
TAP_TEST(ckaa.getAllowedOverlap() == 0, TEST_COUNT_AA_GET_OVERLAP, "");
ckaa.setAllowedOverlap(k-1);
set<KAffect> forbidden;
forbidden.insert(KAffect::getAmbiguous());
forbidden.insert(KAffect::getUnknown());
TAP_TEST(ckaa.getAllowedOverlap() == k-1, TEST_COUNT_AA_GET_OVERLAP, "");
TAP_TEST(ckaa.getSequence() == "AAAACCCCCGGGGG", TEST_AA_GET_SEQUENCE, "actual: " << ckaa.getSequence());
for (int i = 2; i < nb_seq-1; i++) {
......
......@@ -42,6 +42,7 @@ enum {
TEST_AA_GET_MAXIMUM_COUNTS,
TEST_AA_GET_MAXIMUM_VALUE,
TEST_AA_GET_SEQUENCE,
TEST_COUNT_AA_GET_OVERLAP,
TEST_COUNT_AA_COUNT,
TEST_COUNT_AA_COUNT_BEFORE,
TEST_COUNT_AA_COUNT_AFTER,
......@@ -135,6 +136,7 @@ inline void declare_tests() {
RECORD_TAP_TEST(TEST_AA_GET_MAXIMUM_COUNTS, "KmerAffectAnalyser: getMaximum() function, counts of affectations");
RECORD_TAP_TEST(TEST_AA_GET_MAXIMUM_VALUE, "KmerAffectAnalyser: getMaximum() function, maximum value");
RECORD_TAP_TEST(TEST_AA_GET_SEQUENCE, "KmerAffectAnalyser: getSequence() function");
RECORD_TAP_TEST(TEST_COUNT_AA_GET_OVERLAP, "CountKmerAffectAnalyser::getAllowedOverlap");
RECORD_TAP_TEST(TEST_COUNT_AA_COUNT, "CountKmerAffectAnalyser::count");
RECORD_TAP_TEST(TEST_COUNT_AA_COUNT_BEFORE, "CountKmerAffectAnalyser::countBefore");
RECORD_TAP_TEST(TEST_COUNT_AA_COUNT_AFTER, "CountKmerAffectAnalyser::countAfter");
......
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