X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/bd875ab511fafa4504f36852a42927ef9c0e1fd1..f19506b1bfe5e60c39581dd53f6913a09385f5dd:/test/folding.vader?ds=inline diff --git a/test/folding.vader b/test/folding.vader index ee20975..ecf5f9b 100644 --- a/test/folding.vader +++ b/test/folding.vader @@ -28,11 +28,26 @@ Execute (fold level # in code block): AssertEqual foldlevel(12), 2, 'foobar' Given markdown; +Fold Level 1 +============ +Fold Level 2 +------------ -==+ Fold Level 1 +Execute (fold level ==, --): + AssertEqual foldlevel(2), 1, '==' + AssertEqual foldlevel(4), 2, '--' ---+ Fold Level 2 +Given markdown; +# H1 + +## H1.1 + +## H1.2 + +# H2 -Execute (fold level ==+, --+): - AssertEqual foldlevel(2), 1, '==+' - AssertEqual foldlevel(4), 2, '--+' +Execute (fold level # in last line): + AssertEqual foldlevel(1), 0, '# H1' + AssertEqual foldlevel(3), 1, '## H1.1' + AssertEqual foldlevel(5), 1, '## H1.2' + AssertEqual foldlevel(7), 0, '# H2'