aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-06-29 02:42:56 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-06-29 02:43:31 +0200
commitf33b30f661c0a43fb1bae72ca3b199e0b964515c (patch)
tree14feda22f62753ae241d51dc650e630c45256a99
parent519f1f8031687ebf3853817a8b2e3557c2443d67 (diff)
downloadblogc-f33b30f661c0a43fb1bae72ca3b199e0b964515c.tar.gz
blogc-f33b30f661c0a43fb1bae72ca3b199e0b964515c.tar.bz2
blogc-f33b30f661c0a43fb1bae72ca3b199e0b964515c.zip
content-parser: added more line break tests
-rw-r--r--tests/check_content_parser.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/check_content_parser.c b/tests/check_content_parser.c
index b0272fb..c6d8592 100644
--- a/tests/check_content_parser.c
+++ b/tests/check_content_parser.c
@@ -2067,6 +2067,14 @@ test_content_parse_inline_line_break(void **state)
assert_non_null(html);
assert_string_equal(html, "asd \n");
free(html);
+ html = blogc_content_parse_inline("asd a\n");
+ assert_non_null(html);
+ assert_string_equal(html, "asd a\n");
+ free(html);
+ html = blogc_content_parse_inline("asd a\n");
+ assert_non_null(html);
+ assert_string_equal(html, "asd a\n");
+ free(html);
}