]> granicus.if.org Git - neomutt/commitdiff
test: improve test_mutt_date_make_date()
authorRichard Russon <rich@flatcap.org>
Thu, 30 May 2019 09:34:25 +0000 (10:34 +0100)
committerRichard Russon <rich@flatcap.org>
Thu, 30 May 2019 10:08:48 +0000 (11:08 +0100)
test/date/mutt_date_make_date.c

index 3b9746816332570b4a605612fe37a269fa12697a..41084ad2a7bd2d59e550323a43809404a278a827 100644 (file)
@@ -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);
+  }
 }