diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-08-21 22:50:07 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-08-21 22:50:07 +0200 |
commit | e49fbff384e45dd17fed72321c26937edf6de16b (patch) | |
tree | 07f2db66848b5d23b6311be43f6dc50995096d1f /src/testdir/test_assert.vim | |
parent | 00b0d6d8dc2c04b3cb26ea3c3d58527939f01af6 (diff) |
patch 8.1.1909: more functions can be used as methodsv8.1.1909
Problem: More functions can be used as methods.
Solution: Make a few more functions usable as a method.
Diffstat (limited to 'src/testdir/test_assert.vim')
-rw-r--r-- | src/testdir/test_assert.vim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/testdir/test_assert.vim b/src/testdir/test_assert.vim index 65a0ee41a7..d89bd983a2 100644 --- a/src/testdir/test_assert.vim +++ b/src/testdir/test_assert.vim @@ -54,7 +54,7 @@ func Test_assert_equalfile() let goodtext = ["one", "two", "three"] call writefile(goodtext, 'Xone') - call assert_equal(1, assert_equalfile('Xone', 'xyzxyz')) + call assert_equal(1, 'Xone'->assert_equalfile('xyzxyz')) call assert_match("E485: Can't read file xyzxyz", v:errors[0]) call remove(v:errors, 0) @@ -97,6 +97,9 @@ func Test_assert_report() call assert_equal(1, assert_report('something is wrong')) call assert_match('something is wrong', v:errors[0]) call remove(v:errors, 0) + call assert_equal(1, 'also wrong'->assert_report()) + call assert_match('also wrong', v:errors[0]) + call remove(v:errors, 0) endfunc func Test_assert_exception() |