aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-06-29 22:59:38 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-06-29 22:59:38 +0200
commit9d2a4d278fc90aebb81ee326fdff4856e123dccc (patch)
tree4cefbfbbf8e979cf419fd55f5bd65207a26be691
parentf33b30f661c0a43fb1bae72ca3b199e0b964515c (diff)
downloadblogc-9d2a4d278fc90aebb81ee326fdff4856e123dccc.tar.gz
blogc-9d2a4d278fc90aebb81ee326fdff4856e123dccc.tar.bz2
blogc-9d2a4d278fc90aebb81ee326fdff4856e123dccc.zip
content-parser: fixed tests
-rw-r--r--tests/check_content_parser.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/check_content_parser.c b/tests/check_content_parser.c
index c6d8592..ca5a58d 100644
--- a/tests/check_content_parser.c
+++ b/tests/check_content_parser.c
@@ -1686,9 +1686,9 @@ test_content_parse_inline_em(void **state)
assert_non_null(html);
assert_string_equal(html, "<em>bola</em>\n");
free(html);
- html = blogc_content_parse_inline("_bo\\*la_\n");
+ html = blogc_content_parse_inline("_bo\\_la_\n");
assert_non_null(html);
- assert_string_equal(html, "<em>bo*la</em>\n");
+ assert_string_equal(html, "<em>bo_la</em>\n");
free(html);
html = blogc_content_parse_inline("_**bola**_\n");
assert_non_null(html);
@@ -1720,9 +1720,9 @@ test_content_parse_inline_strong(void **state)
assert_non_null(html);
assert_string_equal(html, "<strong>bola</strong>\n");
free(html);
- html = blogc_content_parse_inline("**bo\*la**\n");
+ html = blogc_content_parse_inline("**bo\\*\\*la**\n");
assert_non_null(html);
- assert_string_equal(html, "<strong>bo*la</strong>\n");
+ assert_string_equal(html, "<strong>bo**la</strong>\n");
free(html);
html = blogc_content_parse_inline("__bola__");
assert_non_null(html);
@@ -1732,9 +1732,9 @@ test_content_parse_inline_strong(void **state)
assert_non_null(html);
assert_string_equal(html, "<strong>bola</strong>\n");
free(html);
- html = blogc_content_parse_inline("__bo\*la__\n");
+ html = blogc_content_parse_inline("__bo\\_\\_la__\n");
assert_non_null(html);
- assert_string_equal(html, "<strong>bo*la</strong>\n");
+ assert_string_equal(html, "<strong>bo__la</strong>\n");
free(html);
html = blogc_content_parse_inline("__*bola*__\n");
assert_non_null(html);