From a14b11e85376c12db732f980e45a18a5d02d91db Mon Sep 17 00:00:00 2001 From: jlamothe Date: Fri, 10 Nov 2023 21:17:06 +0000 Subject: [PATCH] append to an empty test log --- test/append-test-log.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/test/append-test-log.c b/test/append-test-log.c index a05244f..51d471e 100644 --- a/test/append-test-log.c +++ b/test/append-test-log.c @@ -20,15 +20,34 @@ */ #include +#include #include "../9unit.h" +#include "util.h" #include "append-test-log.h" +// Local Prototypes + +static void append_to_empty(TestState *); + // Public Functions void -test_append_test_log(TestState *) +test_append_test_log(TestState *s) { + print("append_test_log()\n"); + append_to_empty(s); +} + +// Local Functions + +static void +append_to_empty(TestState *) +{ + TestState test; + print("\tappend to empty\n"); + mk_sample_state(&test); + append_test_log(&test, "foo"); } //jl