From f6a075a3a907c0e03e80cc69b61e3205c89feb2a Mon Sep 17 00:00:00 2001 From: benjaoming Date: Mon, 18 Feb 2013 11:24:13 +0100 Subject: adding test for out of order headlines --- tests/extensions/test.cfg | 3 +++ tests/extensions/toc_out_of_order.html | 8 ++++++++ tests/extensions/toc_out_of_order.txt | 5 +++++ 3 files changed, 16 insertions(+) create mode 100644 tests/extensions/toc_out_of_order.html create mode 100644 tests/extensions/toc_out_of_order.txt (limited to 'tests') diff --git a/tests/extensions/test.cfg b/tests/extensions/test.cfg index 4efd837..7f082cf 100644 --- a/tests/extensions/test.cfg +++ b/tests/extensions/test.cfg @@ -12,6 +12,9 @@ extensions=toc [toc_invalid] extensions=toc +[toc_out_of_order] +extensions=toc + [toc_nested] extensions=toc diff --git a/tests/extensions/toc_out_of_order.html b/tests/extensions/toc_out_of_order.html new file mode 100644 index 0000000..93d8b04 --- /dev/null +++ b/tests/extensions/toc_out_of_order.html @@ -0,0 +1,8 @@ +
+ +
+

Header 2

+

Header 1

\ No newline at end of file diff --git a/tests/extensions/toc_out_of_order.txt b/tests/extensions/toc_out_of_order.txt new file mode 100644 index 0000000..f08bdbc --- /dev/null +++ b/tests/extensions/toc_out_of_order.txt @@ -0,0 +1,5 @@ +[TOC] + +## Header 2 + +# Header 1 -- cgit v1.2.3