comparison src/testdir/test_cindent.vim @ 16668:81be817c9d9a v8.1.1336

patch 8.1.1336: some eval functionality is not covered by tests commit https://github.com/vim/vim/commit/17aca707f92235b6f962e637e8073162d18e6de2 Author: Bram Moolenaar <Bram@vim.org> Date: Thu May 16 22:24:55 2019 +0200 patch 8.1.1336: some eval functionality is not covered by tests Problem: Some eval functionality is not covered by tests. Solution: Add a few more test cases. (Masato Nishihata, closes https://github.com/vim/vim/issues/4374)
author Bram Moolenaar <Bram@vim.org>
date Thu, 16 May 2019 22:30:06 +0200
parents 4dba3e4f3b01
children 9c90cf08cfa8
comparison
equal deleted inserted replaced
16667:a9680e0ff089 16668:81be817c9d9a
100 call feedkeys("^\<c-v>j$A;\<esc>", 'tnix') 100 call feedkeys("^\<c-v>j$A;\<esc>", 'tnix')
101 call assert_equal([' var_a = something();', ' b = something()'], getline(1, '$')) 101 call assert_equal([' var_a = something();', ' b = something()'], getline(1, '$'))
102 bw! 102 bw!
103 endfunc 103 endfunc
104 104
105 func Test_cindent_func()
106 new
107 setlocal cindent
108 call setline(1, ['int main(void)', '{', 'return 0;', '}'])
109 call assert_equal(cindent(0), -1)
110 call assert_equal(cindent(3), &sw)
111 call assert_equal(cindent(line('$')+1), -1)
112 bwipe!
113 endfunc
114
105 " vim: shiftwidth=2 sts=2 expandtab 115 " vim: shiftwidth=2 sts=2 expandtab