From 28e33704b6242f6e1aa706df8a93f5db154dbd35 Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Sun, 26 May 2019 16:02:24 +0100 Subject: [PATCH] test: improve test_mutt_str_strlen() --- test/string/mutt_str_strlen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/string/mutt_str_strlen.c b/test/string/mutt_str_strlen.c index 2f2d171b8..61e7ad903 100644 --- a/test/string/mutt_str_strlen.c +++ b/test/string/mutt_str_strlen.c @@ -29,7 +29,7 @@ void test_mutt_str_strlen(void) { // size_t mutt_str_strlen(const char *a); - { - TEST_CHECK(mutt_str_strlen(NULL) == 0); - } + TEST_CHECK(mutt_str_strlen(NULL) == 0); + TEST_CHECK(mutt_str_strlen("") == 0); + TEST_CHECK(mutt_str_strlen("hello") == 5); } -- 2.40.0