Commit e1824607 authored by jkvis's avatar jkvis

Testing childtab for example of Jeon et al.

parent 2737712f
......@@ -26,7 +26,7 @@ tests: CFLAGS += -O0 -DDEBUG -ggdb3
tests: debug $(LIBS)
$(MAKE) -C tests run_tests
all: $(TARGET)
all: $(TARGET) $(LIBS)
clean:
rm -f $(OBJECTS) $(DEPS) $(TARGET)
......
......@@ -15,5 +15,21 @@ int main(int argc, char* argv[])
printf("test 1\n");
GESA gesa;
assert(GESA_create(&gesa, (GESA_char_t*) "accttacgacgaccttcca~", 21) == 0);
GESA_print(&gesa, stdout);
GESA_index_t* childtab = malloc(21 * sizeof(*childtab));
assert(childtab != 0);
GESA_calculate_childtab(&gesa, childtab);
for (size_t i = 0; i < 21; ++i)
{
printf("%5ld %5d\n", i, childtab[i]);
} // for
return EXIT_SUCCESS;
} // main
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