From 88e38d042f3c125d06e37d2ed72ad07e52259117 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Mon, 20 Feb 2017 12:46:38 +0100 Subject: [PATCH] tests: print_string: test if NULL is printed as empty string --- tests/print_string.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/print_string.c b/tests/print_string.c index 03ea504..1404160 100644 --- a/tests/print_string.c +++ b/tests/print_string.c @@ -40,6 +40,7 @@ static void assert_print_string(const char *expected, const char *input) static void print_string_should_print_empty_strings(void) { assert_print_string("\"\"", ""); + assert_print_string("\"\"", NULL); } static void print_string_should_print_ascii(void)