X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/3eb82a968fa932ab85d84544e958ecee22640468..e4ba18e1fb1f540307565b0d4a64b4dddd03d561:/test/python-folding.vader?ds=inline diff --git a/test/python-folding.vader b/test/python-folding.vader index 851f045..b9e1dd0 100644 --- a/test/python-folding.vader +++ b/test/python-folding.vader @@ -34,13 +34,25 @@ Execute (fold text of chapters): Given markdown; Fold text 1 -==+ Fold Level 1 +=========== Fold text 2 ---+ Fold Level 2 +----------- -Execute (fold level ==+, --+): - AssertEqual foldlevel(2), 0, '==+' - AssertEqual foldlevel(4), 1, '--+' +Execute (fold level ==, --): + AssertEqual foldlevel(2), 0, '==' + AssertEqual foldlevel(4), 1, '--' -Execute (fold text of ==+, --+): +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'