Commit 884d9328 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

unit-tests: Remove compilation warnings

parent fd20db6b
......@@ -147,9 +147,9 @@ void testAffectAnalyser2() {
TAP_TEST(kaa.getAffectation(i - k + 1) == kaa.getAllAffectations(AO_NONE)[i - k + 1], TEST_AA_GET_ALL_AO_NONE, "");
TAP_TEST(kaa.getAffectation(0) == kaa.getAllAffectations(AO_NO_CONSECUTIVE)[0], TEST_AA_GET_ALL_AO_NO_CONSECUTIVE, "");
if (kaa.count() == sequence.length() - k + 1) {
if ((size_t)kaa.count() == sequence.length() - k + 1) {
TAP_TEST(kaa.getAllAffectations(AO_NO_CONSECUTIVE).size() == 4, TEST_AA_GET_ALL_AO_NO_CONSECUTIVE, "size = " << kaa.getAllAffectations(AO_NO_CONSECUTIVE).size());
} else if (kaa.count() == sequence.length()) {
} else if ((size_t) kaa.count() == sequence.length()) {
TAP_TEST(kaa.getAllAffectations(AO_NO_CONSECUTIVE).size() == 5, TEST_AA_GET_ALL_AO_NO_CONSECUTIVE, "size = " << kaa.getAllAffectations(AO_NO_CONSECUTIVE).size());
}
TAP_TEST(kaa.getAffectation(1) == kaa.getAllAffectations(AO_NO_CONSECUTIVE)[1], TEST_AA_GET_ALL_AO_NO_CONSECUTIVE, "actual: " << kaa.getAllAffectations(AO_NO_CONSECUTIVE)[1] << ", expected: " << kaa.getAffectation(1));
......
......@@ -7,7 +7,7 @@
using namespace std;
void testSegmentationBug1(int delta_min, int delta_max) {
void testSegmentationBug1(int delta_min) {
string buggy_sequences = "bugs/kmersegment.fa";
Fasta seqV("../../germline/TRGV.fa");
Fasta seqJ("../../germline/TRGJ.fa");
......@@ -54,5 +54,5 @@ void testSegmentationBug1(int delta_min, int delta_max) {
}
void testBugs() {
testSegmentationBug1(-10, 15);
testSegmentationBug1(-10);
}
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