Commit a34cd291 authored by Mathieu Giraud's avatar Mathieu Giraud

tests: add tests

parent 18797367
......@@ -491,6 +491,12 @@ void testExtractGeneName(){
"Fail to extract gene name from:" << example_3 << " result:" << extractGeneName(example_3));
}
void testConversions(){
TAP_TEST_EQUAL(string_of_int(12), "12", TEST_CONVERSIONS, "");
TAP_TEST_EQUAL(string_of_int(12, 4), "0012", TEST_CONVERSIONS, "");
TAP_TEST_EQUAL(fixed_string_of_float(12.345, 1), "12.3", TEST_CONVERSIONS, "");
}
void testTools() {
testOnlineBioReader1();
testOnlineBioReaderMaxNth();
......@@ -515,4 +521,5 @@ void testTools() {
testTrimSequence();
testIsStopCodon();
testExtractGeneName();
testConversions();
}
......@@ -23,6 +23,7 @@ enum {
TEST_BAM_SEQUENCE,
TEST_IS_STOP_CODON,
TEST_EXTRACT_GENE_NAME,
TEST_CONVERSIONS,
/* Filter tests */
TEST_AUTOMATON_BUILDER_TO_FILTER_BIOREADER,
......
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