From 1413c2cc27fb062758c57205c2796609ace75e29 Mon Sep 17 00:00:00 2001 From: Hiroshi Shirosaki Date: Mon, 14 Dec 2015 10:46:13 +0900 Subject: [PATCH 1/1] Add tests for preamble fold of python-mode style #213 --- test/python-folding.vader | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/python-folding.vader b/test/python-folding.vader index 851f045..43f8085 100644 --- a/test/python-folding.vader +++ b/test/python-folding.vader @@ -44,3 +44,15 @@ Execute (fold level ==+, --+): Execute (fold text of ==+, --+): AssertEqual foldtextresult(3), 'Fold text 2 ' . repeat('-', winwidth(0) - 17) . ' 1' + +Given markdown; +Headline + +foobar + +# Title + +Execute (fold any preamble): + AssertEqual foldlevel(1), 1, 'Headline' + AssertEqual foldlevel(3), 1, 'foobar' + AssertEqual foldlevel(5), 0, '# Title' -- 2.39.5