diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2021-08-07 17:53:43 +0100 |
---|---|---|
committer | Sean Dewar <seandewar@users.noreply.github.com> | 2021-08-12 22:35:24 +0100 |
commit | 7925f0b6330c18c9391d02f844cd17b41fbb3d2e (patch) | |
tree | 17519697c8de6e7a8c0154c9a16333c282f219da /test/functional/legacy/assert_spec.lua | |
parent | 5fbc1a49c719c0c93fa73277ac30d17f797d096d (diff) | |
download | rneovim-7925f0b6330c18c9391d02f844cd17b41fbb3d2e.tar.gz rneovim-7925f0b6330c18c9391d02f844cd17b41fbb3d2e.tar.bz2 rneovim-7925f0b6330c18c9391d02f844cd17b41fbb3d2e.zip |
vim-patch:8.1.1909: more functions can be used as methods
Problem: More functions can be used as methods.
Solution: Make a few more functions usable as a method.
https://github.com/vim/vim/commit/e49fbff384e45dd17fed72321c26937edf6de16b
Diffstat (limited to 'test/functional/legacy/assert_spec.lua')
-rw-r--r-- | test/functional/legacy/assert_spec.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/legacy/assert_spec.lua b/test/functional/legacy/assert_spec.lua index 40050f6ce8..c2b22472bf 100644 --- a/test/functional/legacy/assert_spec.lua +++ b/test/functional/legacy/assert_spec.lua @@ -360,6 +360,13 @@ describe('assert function:', function() command('call remove(v:errors, 0)') expected_empty() end) + + it('can be used as a method', function() + local tmpname = source [[ + call assert_equal(1, 'also wrong'->assert_report()) + ]] + expected_errors({tmpname .. ' line 1: also wrong'}) + end) end) -- assert_exception({cmd}, [, {error}]) |