comparison src/testdir/test_bufline.vim @ 17837:f71ee7b04f0b v8.1.1915

patch 8.1.1915: more functions can be used as methods Commit: https://github.com/vim/vim/commit/1a3a89168d61c2fed91cbca812cf1c6983901b79 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 23 22:31:37 2019 +0200 patch 8.1.1915: more functions can be used as methods Problem: More functions can be used as methods. Solution: Make various functions usable as a method.
author Bram Moolenaar <Bram@vim.org>
date Fri, 23 Aug 2019 22:45:04 +0200
parents ce993ba17adb
children 4935244c1128
comparison
equal deleted inserted replaced
17836:a3061757584b 17837:f71ee7b04f0b
130 call assert_equal(0, deletebufline(b, 2)) 130 call assert_equal(0, deletebufline(b, 2))
131 call assert_equal(['aaa', 'ccc'], getbufline(b, 1, 2)) 131 call assert_equal(['aaa', 'ccc'], getbufline(b, 1, 2))
132 call assert_equal(0, deletebufline(b, 2, 8)) 132 call assert_equal(0, deletebufline(b, 2, 8))
133 call assert_equal(['aaa'], getbufline(b, 1, 2)) 133 call assert_equal(['aaa'], getbufline(b, 1, 2))
134 exe "bd!" b 134 exe "bd!" b
135 call assert_equal(1, deletebufline(b, 1)) 135 call assert_equal(1, b->deletebufline(1))
136 136
137 call assert_equal(1, deletebufline(-1, 1)) 137 call assert_equal(1, deletebufline(-1, 1))
138 138
139 split Xtest 139 split Xtest
140 call setline(1, ['a', 'b', 'c']) 140 call setline(1, ['a', 'b', 'c'])