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
86e25919
Commit
86e25919
authored
Apr 28, 2020
by
Mikaël Salson
Browse files
algo/tests: Use TAP_TEST_EQUAL in a few more places
parent
1d83f45a
Changes
2
Hide whitespace changes
Inline
Side-by-side
algo/tests/unit-tests/testAffectAnalyser.cpp
View file @
86e25919
...
...
@@ -146,8 +146,8 @@ void testAffectAnalyser2() {
TAP_TEST
(
kaa
.
getDistinctAffectations
().
size
()
==
3
,
TEST_AA_GET_DISTINCT_AFFECT
,
""
);
TAP_TEST
(
ckaa
.
max
(
forbidden
)
==
KmerAffect
(
seq
[
2
*
(
nb_seq
-
1
)
+
1
],
-
1
,
k
),
TEST_COUNT_AA_MAX
,
"
max is "
<<
ckaa
.
max
(
forbidden
)
);
TAP_TEST
_EQUAL
(
ckaa
.
max
(
forbidden
)
,
KmerAffect
(
seq
[
2
*
(
nb_seq
-
1
)
+
1
],
-
1
,
k
),
TEST_COUNT_AA_MAX
,
"
"
);
TAP_TEST
(
ckaa
.
max
()
==
KmerAffect
::
getUnknown
(),
TEST_COUNT_AA_MAX
,
"max is "
<<
ckaa
.
max
());
...
...
algo/tests/unit-tests/testRepresentative.cpp
View file @
86e25919
...
...
@@ -81,10 +81,10 @@ void testRevcompRepresentative() {
size_t
pos1
=
representative
.
label
.
find_first_of
(
'['
);
size_t
pos2
=
representative2
.
label
.
find_first_of
(
'['
);
TAP_TEST
(
representative
.
label
.
substr
(
0
,
pos1
)
==
representative2
.
label
.
substr
(
0
,
pos2
),
TEST_KMER_REPRESENTATIVE_REVCOMP
,
TAP_TEST
_EQUAL
(
representative
.
label
.
substr
(
0
,
pos1
)
,
representative2
.
label
.
substr
(
0
,
pos2
),
TEST_KMER_REPRESENTATIVE_REVCOMP
,
"The two representatives should have the same label"
);
TAP_TEST
(
revcomp
(
representative
.
sequence
)
==
representative2
.
sequence
,
TEST_KMER_REPRESENTATIVE_REVCOMP
,
"The two representatives should have the same sequence (but revcomp-ed)"
);
}
\ No newline at end of file
}
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