diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-08-18 23:01:56 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-08-18 23:01:56 +0200 |
commit | 073e4b92e613d22ce7b16e0fbf5c0e40cb5f9b2c (patch) | |
tree | 627a153c9bb3076e512a6b0209227b66d5255ce5 /src/testdir/test_functions.vim | |
parent | 0a52df50a0e8fce6f5e0eb5f5373dcd0fa24d83a (diff) | |
download | vim-git-073e4b92e613d22ce7b16e0fbf5c0e40cb5f9b2c.tar.gz |
patch 8.1.1888: more functions can be used as methodsv8.1.1888
Problem: More functions can be used as methods.
Solution: Make various functions usable as a method.
Diffstat (limited to 'src/testdir/test_functions.vim')
-rw-r--r-- | src/testdir/test_functions.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testdir/test_functions.vim b/src/testdir/test_functions.vim index 474e6384e..5249d4e94 100644 --- a/src/testdir/test_functions.vim +++ b/src/testdir/test_functions.vim @@ -1537,12 +1537,12 @@ func Test_bufadd_bufload() let curbuf = bufnr('') call writefile(['some', 'text'], 'XotherName') - let buf = bufadd('XotherName') + let buf = 'XotherName'->bufadd() call assert_notequal(0, buf) - call assert_equal(1, bufexists('XotherName')) + eval 'XotherName'->bufexists()->assert_equal(1) call assert_equal(0, getbufvar(buf, '&buflisted')) call assert_equal(0, bufloaded(buf)) - call bufload(buf) + eval buf->bufload() call assert_equal(1, bufloaded(buf)) call assert_equal(['some', 'text'], getbufline(buf, 1, '$')) call assert_equal(curbuf, bufnr('')) |