From 5f716773aba4ee0e66217ae6625ac51f58e6c7a8 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Mon, 6 Nov 2017 21:49:18 +0100 Subject: [PATCH] One more litte test for Tommy Just to increase the code coverage. --- cmdline/selftest.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmdline/selftest.c b/cmdline/selftest.c index 26a95999..b1e355a3 100644 --- a/cmdline/selftest.c +++ b/cmdline/selftest.c @@ -359,6 +359,9 @@ static void test_tommy(void) *(unsigned*)tommy_arrayblkof_ref(&arrayblkof, i) = i; } + tommy_array_grow(&array, TOMMY_SIZE); + tommy_arrayblkof_grow(&arrayblkof, TOMMY_SIZE); + if (tommy_array_memory_usage(&array) < TOMMY_SIZE * sizeof(void*)) { /* LCOV_EXCL_START */ goto bail;