Explorar o código

tests: print_string: test if NULL is printed as empty string

Max Bruckner %!s(int64=8) %!d(string=hai) anos
pai
achega
88e38d042f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      tests/print_string.c

+ 1 - 0
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)