Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
884d9328
Commit
884d9328
authored
Jun 22, 2016
by
Mikaël Salson
Browse files
unit-tests: Remove compilation warnings
parent
fd20db6b
Changes
2
Hide whitespace changes
Inline
Side-by-side
algo/tests/unit-tests/testAffectAnalyser.cpp
View file @
884d9328
...
...
@@ -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
));
...
...
algo/tests/unit-tests/testBugs.cpp
View file @
884d9328
...
...
@@ -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
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment