瀏覽代碼

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)