From d6446d5d90fbbcca61e4226ccd0bdeab615bc1eb Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 13 Aug 2013 15:56:30 -0400 Subject: [PATCH] Finish test coverage for tags. --- tests/tokenizer/tags_wikimarkup.mwtest | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/tokenizer/tags_wikimarkup.mwtest b/tests/tokenizer/tags_wikimarkup.mwtest index d75968d..632ba72 100644 --- a/tests/tokenizer/tags_wikimarkup.mwtest +++ b/tests/tokenizer/tags_wikimarkup.mwtest @@ -181,6 +181,20 @@ output: [Text(text="none"), TagOpenOpen(wiki_markup="'''"), Text(text="b"), TagC --- +name: five_three +label: five ticks to open, three to close (bold) +input: "'''''foobar'''" +output: [Text(text="''"), TagOpenOpen(wiki_markup="'''"), Text(text="b"), TagCloseOpen(), Text(text="foobar"), TagOpenClose(), Text(text="b"), TagCloseClose()] + +--- + +name: five_two +label: five ticks to open, two to close (bold) +input: "'''''foobar''" +output: [Text(text="'''"), TagOpenOpen(wiki_markup="''"), Text(text="i"), TagCloseOpen(), Text(text="foobar"), TagOpenClose(), Text(text="i"), TagCloseClose()] + +--- + name: four label: four ticks input: "foo ''''bar'''' baz"