From 881dfcac6c0829260c9cb59b2520b8da13e8008d Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Thu, 30 May 2019 10:34:25 +0100 Subject: [PATCH] test: improve test_mutt_date_make_date() --- test/date/mutt_date_make_date.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/date/mutt_date_make_date.c b/test/date/mutt_date_make_date.c index 3b9746816..41084ad2a 100644 --- a/test/date/mutt_date_make_date.c +++ b/test/date/mutt_date_make_date.c @@ -32,4 +32,10 @@ void test_mutt_date_make_date(void) { TEST_CHECK(!mutt_date_make_date(NULL, 10)); } + + { + char buf[64] = { 0 }; + TEST_CHECK(mutt_date_make_date(buf, sizeof(buf)) == buf); + TEST_MSG("%s", buf); + } } -- 2.40.0