X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/e72e47d30d117acf0d91dde2258cab651d90f700..1ec89a223c39af3eb4dbf4aff2698878cb03aa9c:/test/folding-toc.vader diff --git a/test/folding-toc.vader b/test/folding-toc.vader index e15ed73..950d8cd 100644 --- a/test/folding-toc.vader +++ b/test/folding-toc.vader @@ -29,7 +29,7 @@ echo "foo" ~~~~bash mkdir foo -cd foo +# comment in ~ ~~~~ ### chap 1.1.1 @@ -74,6 +74,7 @@ Execute (fold level): AssertEqual foldlevel(7), 1, '# some bash scripting' AssertEqual foldlevel(15), 1, '## chap 1.1' AssertEqual foldlevel(21), 2, 'mkdir foo' + AssertEqual foldlevel(22), 2, 'comment in ~' AssertEqual foldlevel(25), 2, '### chap 1.1.1' AssertEqual foldlevel(27), 3, '- dragons' AssertEqual foldlevel(30), 1, '# chap 2' @@ -96,6 +97,7 @@ Execute (fold text result): Execute (check TOC): :Toc + :lclose let res = getloclist(0) let elem = res[0] AssertEqual elem.lnum, 1