From 903c8313bc1f8a1ce3d97fc944293d79ccdac76c Mon Sep 17 00:00:00 2001
From: "Rafael G. Martins" guda\n"
- "yay
**bola**
\n"); free(html); } @@ -319,6 +322,18 @@ test_content_parse_invalid_code(void **state) } +void +test_content_parse_inline(void **state) +{ + char *html = blogc_content_parse_inline("**bola***asd* ``chunda``"); + assert_string_equal(html, "bolaasdchunda
");
+ free(html);
+ html = blogc_content_parse_inline("*bola*");
+ assert_string_equal(html, "bola");
+ free(html);
+}
+
+
int
main(void)
{
@@ -332,6 +347,7 @@ main(void)
unit_test(test_content_parse_invalid_header_empty),
unit_test(test_content_parse_invalid_blockquote),
unit_test(test_content_parse_invalid_code),
+ unit_test(test_content_parse_inline),
};
return run_tests(tests);
}
--
cgit v1.2.3-18-g5258