From fc7369835258467bf97eb64f184b93691f9a9fd5 Mon Sep 17 00:00:00 2001 From: Yaco Date: Thu, 4 Jun 2020 11:01:00 -0300 Subject: first commit --- www/wiki/extensions/Poem/poemParserTests.txt | 142 +++++++++++++++++++++++++++ 1 file changed, 142 insertions(+) create mode 100644 www/wiki/extensions/Poem/poemParserTests.txt (limited to 'www/wiki/extensions/Poem/poemParserTests.txt') diff --git a/www/wiki/extensions/Poem/poemParserTests.txt b/www/wiki/extensions/Poem/poemParserTests.txt new file mode 100644 index 00000000..266dd614 --- /dev/null +++ b/www/wiki/extensions/Poem/poemParserTests.txt @@ -0,0 +1,142 @@ +# Force the test runner to ensure the extension is loaded +!! hooks +poem +!! endhooks + +#Regression tests for existing functionality, to ensure nothing was broken. +!! test + +!! input + +this +is +a +test + +!! result +
+

this
+is
+a
+test +

+
+ +!! end + +!!test + with recursive parsing +!!input + +this ''is'' a '''test''' + +!! result +
+

this is a test +

+
+ +!!end + + +!!test + with leading whitespace +!!input + + + test + + +!! result +
+


+   test
+

+
+ +!!end + +!!test +Horizontal rule +!!input + +some +----- +text + +!!result +
+

some
+

+

+

text +

+
+ +!!end + +#test for new poem/nowiki feature; should fail without new enhancement. +!! test 2 +example of without +!!options +disabled +!! input + +this +is +a +test + +!! result +

+this +is +a +test + +

+!! end + +!! test + nested +!! input + +this +is +a +test + +!! result +
+


+this
+is
+a
+test
+ +

+
+ +!!end + +!! test 5 + nested with formatting +!! input + +this +'''is''' +a +test + +!! result +
+


+this
+'''is'''
+a
+test
+ +

+
+ +!! end -- cgit v1.2.1