X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/3eb82a968fa932ab85d84544e958ecee22640468..6764c57a44362da5ce0bf142f996c45e63b0a581:/test/python-folding.vader?ds=sidebyside 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'