فهرست منبع

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)