diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-16 22:24:55 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-16 22:24:55 +0200 |
commit | 17aca707f92235b6f962e637e8073162d18e6de2 (patch) | |
tree | 35b570117e4f60a922adbdac39fc5fa5dc0857fb /src/testdir/test_cindent.vim | |
parent | dda4144d39a9d685b8dda830978e7410bd372c40 (diff) | |
download | vim-git-17aca707f92235b6f962e637e8073162d18e6de2.tar.gz |
patch 8.1.1336: some eval functionality is not covered by testsv8.1.1336
Problem: Some eval functionality is not covered by tests.
Solution: Add a few more test cases. (Masato Nishihata, closes #4374)
Diffstat (limited to 'src/testdir/test_cindent.vim')
-rw-r--r-- | src/testdir/test_cindent.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test_cindent.vim b/src/testdir/test_cindent.vim index 7c2c5e341..3b57360ac 100644 --- a/src/testdir/test_cindent.vim +++ b/src/testdir/test_cindent.vim @@ -102,4 +102,14 @@ func Test_cindent_expr() bw! endfunc +func Test_cindent_func() + new + setlocal cindent + call setline(1, ['int main(void)', '{', 'return 0;', '}']) + call assert_equal(cindent(0), -1) + call assert_equal(cindent(3), &sw) + call assert_equal(cindent(line('$')+1), -1) + bwipe! +endfunc + " vim: shiftwidth=2 sts=2 expandtab |