From: Fletcher T. Penney Date: Tue, 21 Nov 2017 22:29:39 +0000 (-0500) Subject: ADDED: Add additional CM tests X-Git-Tag: 6.3.0^2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a74aa5f1d401967e3a444e722f81b29b5201248;p=multimarkdown ADDED: Add additional CM tests --- diff --git a/Sources/libMultiMarkdown/critic_markup.c b/Sources/libMultiMarkdown/critic_markup.c index 1972161..604fef8 100644 --- a/Sources/libMultiMarkdown/critic_markup.c +++ b/Sources/libMultiMarkdown/critic_markup.c @@ -391,6 +391,20 @@ void Test_critic(CuTest* tc) { mmd_critic_markup_reject(test); CuAssertStrEquals(tc, "foo bar", test->str); + d_string_erase(test, 0, -1); + d_string_append(test, "{==foo bar==}"); + mmd_critic_markup_accept(test); + CuAssertStrEquals(tc, "foo bar", test->str); + + d_string_erase(test, 0, -1); + d_string_append(test, "{>>foo bar<<}"); + mmd_critic_markup_reject(test); + CuAssertStrEquals(tc, "", test->str); + + d_string_erase(test, 0, -1); + d_string_append(test, "{>>foo bar<<}"); + mmd_critic_markup_accept(test); + CuAssertStrEquals(tc, "", test->str); // Decrement counter and clean up token pool token_pool_drain();