Преглед изворни кода

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

Max Bruckner пре 8 година
родитељ
комит
88e38d042f
1 измењених фајлова са 1 додато и 0 уклоњено
  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)