mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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.
e49fbff384
This commit is contained in:
@@ -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}])
|
||||
|
||||
Reference in New Issue
Block a user