From 7ed14aa3c4bf2f73b88f33d55abda60e5cfe62c7 Mon Sep 17 00:00:00 2001 From: Alex Kocharin Date: Thu, 2 Oct 2014 09:32:14 +0400 Subject: [PATCH] Add single-rule test cases --- benchmark/samples/block-bq-flat.md | 16 ++++++++++++++++ benchmark/samples/block-bq-nested.md | 13 +++++++++++++ benchmark/samples/block-code.md | 11 +++++++++++ benchmark/samples/block-fences.md | 14 ++++++++++++++ benchmark/samples/block-heading.md | 9 +++++++++ benchmark/samples/block-hr.md | 10 ++++++++++ benchmark/samples/block-lheading.md | 8 ++++++++ benchmark/samples/inline-backticks.md | 3 +++ benchmark/samples/inline-em-flat.md | 5 +++++ benchmark/samples/inline-em-nested.md | 5 +++++ benchmark/samples/inline-em-worst.md | 5 +++++ benchmark/samples/inline-escape.md | 13 +++++++++++++ 12 files changed, 112 insertions(+) create mode 100644 benchmark/samples/block-bq-flat.md create mode 100644 benchmark/samples/block-bq-nested.md create mode 100644 benchmark/samples/block-code.md create mode 100644 benchmark/samples/block-fences.md create mode 100644 benchmark/samples/block-heading.md create mode 100644 benchmark/samples/block-hr.md create mode 100644 benchmark/samples/block-lheading.md create mode 100644 benchmark/samples/inline-backticks.md create mode 100644 benchmark/samples/inline-em-flat.md create mode 100644 benchmark/samples/inline-em-nested.md create mode 100644 benchmark/samples/inline-em-worst.md create mode 100644 benchmark/samples/inline-escape.md diff --git a/benchmark/samples/block-bq-flat.md b/benchmark/samples/block-bq-flat.md new file mode 100644 index 0000000..33e382a --- /dev/null +++ b/benchmark/samples/block-bq-flat.md @@ -0,0 +1,16 @@ +> the simple example of a blockquote +> the simple example of a blockquote +> the simple example of a blockquote +> the simple example of a blockquote +... continuation +... continuation +... continuation +... continuation + +empty blockquote: + +> +> +> +> + diff --git a/benchmark/samples/block-bq-nested.md b/benchmark/samples/block-bq-nested.md new file mode 100644 index 0000000..7ddcffa --- /dev/null +++ b/benchmark/samples/block-bq-nested.md @@ -0,0 +1,13 @@ +>>>>>> deeply nested blockquote +>>>>> deeply nested blockquote +>>>> deeply nested blockquote +>>> deeply nested blockquote +>> deeply nested blockquote +> deeply nested blockquote + +> deeply nested blockquote +>> deeply nested blockquote +>>> deeply nested blockquote +>>>> deeply nested blockquote +>>>>> deeply nested blockquote +>>>>>> deeply nested blockquote diff --git a/benchmark/samples/block-code.md b/benchmark/samples/block-code.md new file mode 100644 index 0000000..2b1554f --- /dev/null +++ b/benchmark/samples/block-code.md @@ -0,0 +1,11 @@ + + an + example + + of + + + + a code + block + diff --git a/benchmark/samples/block-fences.md b/benchmark/samples/block-fences.md new file mode 100644 index 0000000..5fe8b3c --- /dev/null +++ b/benchmark/samples/block-fences.md @@ -0,0 +1,14 @@ + +``````````text +an +example +``` +of + + +a fenced +``` +code +block +`````````` + diff --git a/benchmark/samples/block-heading.md b/benchmark/samples/block-heading.md new file mode 100644 index 0000000..fd98558 --- /dev/null +++ b/benchmark/samples/block-heading.md @@ -0,0 +1,9 @@ +# heading +### heading +##### heading + +# heading # +### heading ### +##### heading \#\#\#\#\###### + +############ not a heading diff --git a/benchmark/samples/block-hr.md b/benchmark/samples/block-hr.md new file mode 100644 index 0000000..e1bad6f --- /dev/null +++ b/benchmark/samples/block-hr.md @@ -0,0 +1,10 @@ + + * * * * * + + - - - - - + + ________ + + + ************************* text + diff --git a/benchmark/samples/block-lheading.md b/benchmark/samples/block-lheading.md new file mode 100644 index 0000000..e5c0d99 --- /dev/null +++ b/benchmark/samples/block-lheading.md @@ -0,0 +1,8 @@ +heading +--- + +heading +=================================== + +not a heading +----------------------------------- text diff --git a/benchmark/samples/inline-backticks.md b/benchmark/samples/inline-backticks.md new file mode 100644 index 0000000..a6ec6e1 --- /dev/null +++ b/benchmark/samples/inline-backticks.md @@ -0,0 +1,3 @@ +`lots`of`backticks` + +``i``wonder``how``this``will``be``parsed`` diff --git a/benchmark/samples/inline-em-flat.md b/benchmark/samples/inline-em-flat.md new file mode 100644 index 0000000..b7668a5 --- /dev/null +++ b/benchmark/samples/inline-em-flat.md @@ -0,0 +1,5 @@ +*this* *is* *your* *basic* *boring* *emphasis* + +_this_ _is_ _your_ _basic_ _boring_ _emphasis_ + +**this** **is** **your** **basic** **boring** **emphasis** diff --git a/benchmark/samples/inline-em-nested.md b/benchmark/samples/inline-em-nested.md new file mode 100644 index 0000000..6bb0a0d --- /dev/null +++ b/benchmark/samples/inline-em-nested.md @@ -0,0 +1,5 @@ +*this *is *a *bunch* of* nested* emphases* + +__this __is __a __bunch__ of__ nested__ emphases__ + +***this ***is ***a ***bunch*** of*** nested*** emphases*** diff --git a/benchmark/samples/inline-em-worst.md b/benchmark/samples/inline-em-worst.md new file mode 100644 index 0000000..b6d21da --- /dev/null +++ b/benchmark/samples/inline-em-worst.md @@ -0,0 +1,5 @@ +*this *is *a *worst *case *for *em *backtracking + +__this __is __a __worst __case __for __em __backtracking + +***this ***is ***a ***worst ***case ***for ***em ***backtracking diff --git a/benchmark/samples/inline-escape.md b/benchmark/samples/inline-escape.md new file mode 100644 index 0000000..1297ba9 --- /dev/null +++ b/benchmark/samples/inline-escape.md @@ -0,0 +1,13 @@ + +\t\e\s\t\i\n\g \e\s\c\a\p\e \s\e\q\u\e\n\c\e\s + +\!\\\"\#\$\%\&\'\(\)\*\+\,\.\/\:\;\<\=\>\? + +\@ \[ \] \^ \_ \` \{ \| \} \~ \- \' + +\ +\\ +\\\ +\\\\ +\\\\\ +