X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/e5bbd260fac44e41a3404495301dc5cceb04addb..6d2cb3c06cd546fd4bee4136679db3a3d5de97fa:/test/folding.vader?ds=sidebyside diff --git a/test/folding.vader b/test/folding.vader index adcae5f..ecf5f9b 100644 --- a/test/folding.vader +++ b/test/folding.vader @@ -36,3 +36,18 @@ Fold Level 2 Execute (fold level ==, --): AssertEqual foldlevel(2), 1, '==' AssertEqual foldlevel(4), 2, '--' + +Given markdown; +# H1 + +## H1.1 + +## H1.2 + +# H2 + +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'