Mercurial > vim
comparison src/testdir/test_fold.vim @ 23027:f74978697fb6 v8.2.2060
patch 8.2.2060: check for features implemented with "if"
Commit: https://github.com/vim/vim/commit/aeb313f355cd67638e3c611354ce401d86f56afe
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Nov 27 19:13:28 2020 +0100
patch 8.2.2060: check for features implemented with "if"
Problem: Check for features implemented with "if".
Solution: Use the Check commands. (Ken Takata, closes https://github.com/vim/vim/issues/7383)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 27 Nov 2020 19:15:04 +0100 |
parents | b05cfda397dc |
children | ef4f890f02f6 |
comparison
equal
deleted
inserted
replaced
23026:1f43d20ca299 | 23027:f74978697fb6 |
---|---|
93 call assert_equal([-1,-1,-1,4,4], a) | 93 call assert_equal([-1,-1,-1,4,4], a) |
94 bw! | 94 bw! |
95 endfunc | 95 endfunc |
96 | 96 |
97 func Test_manual_fold_with_filter() | 97 func Test_manual_fold_with_filter() |
98 if !executable('cat') | 98 CheckExecutable cat |
99 return | |
100 endif | |
101 for type in ['manual', 'marker'] | 99 for type in ['manual', 'marker'] |
102 exe 'set foldmethod=' . type | 100 exe 'set foldmethod=' . type |
103 new | 101 new |
104 call setline(1, range(1, 20)) | 102 call setline(1, range(1, 20)) |
105 4,$fold | 103 4,$fold |