mirror of
https://github.com/neovim/neovim.git
synced 2026-07-22 09:01:45 +00:00
*: Fix test failures
This commit is contained in:
@@ -628,7 +628,7 @@ describe('msgpackdump() function', function()
|
||||
it('fails to dump a recursive (key) map in a special dict', function()
|
||||
command('let todump = {"_TYPE": v:msgpack_types.map, "_VAL": []}')
|
||||
command('call add(todump._VAL, [todump, 0])')
|
||||
eq('Vim(call):E5005: Unable to dump msgpackdump() argument, index 0: container references itself in index 1',
|
||||
eq('Vim(call):E5005: Unable to dump msgpackdump() argument, index 0: container references itself in index 0',
|
||||
exc_exec('call msgpackdump([todump])'))
|
||||
end)
|
||||
|
||||
|
||||
@@ -114,9 +114,11 @@ describe('063: Test for ":match", "matchadd()" and related functions', function(
|
||||
command("call clearmatches()")
|
||||
eq('\nE714: List required', redir_exec("let rf1 = setmatches(0)"))
|
||||
eq(-1, eval('rf1'))
|
||||
eq('\nE474: Invalid argument', redir_exec("let rf2 = setmatches([0])"))
|
||||
eq('\nE474: List item 0 is either not a dictionary or an empty one',
|
||||
redir_exec("let rf2 = setmatches([0])"))
|
||||
eq(-1, eval('rf2'))
|
||||
eq('\nE474: Invalid argument', redir_exec("let rf3 = setmatches([{'wrong key': 'wrong value'}])"))
|
||||
eq('\nE474: List item 0 is missing one of the required keys',
|
||||
redir_exec("let rf3 = setmatches([{'wrong key': 'wrong value'}])"))
|
||||
eq(-1, eval('rf3'))
|
||||
|
||||
-- Check that "matchaddpos()" positions matches correctly
|
||||
|
||||
Reference in New Issue
Block a user