mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
functests/msgpack: Use assert_equal() for more informative errors
This commit is contained in:
parent
601bf9642f
commit
d69286c065
@ -337,7 +337,8 @@ describe('msgpack*() functions', function()
|
||||
eq(1, eval('type(parsed[0]) == type(0) ' ..
|
||||
'|| parsed[0]._TYPE is v:msgpack_types.integer'))
|
||||
if eval('type(parsed[0]) == type(0)') == 1 then
|
||||
eq(1, eval('0xFFFFFFFFFFFFFFFF == parsed[0]'))
|
||||
command('call assert_equal(0xFFFFFFFFFFFFFFFF, parsed[0])')
|
||||
eq({}, eval('v:errors'))
|
||||
else
|
||||
eq({_TYPE={}, _VAL={1, 3, 0x7FFFFFFF, 0x7FFFFFFF}}, eval('parsed[0]'))
|
||||
end
|
||||
@ -351,7 +352,8 @@ describe('msgpack*() functions', function()
|
||||
eq(1, eval('type(parsed[0]) == type(0) ' ..
|
||||
'|| parsed[0]._TYPE is v:msgpack_types.integer'))
|
||||
if eval('type(parsed[0]) == type(0)') == 1 then
|
||||
eq(1, eval('-0x8000000000000000 == parsed[0]'))
|
||||
command('call assert_equal(-0x8000000000000000, parsed[0])')
|
||||
eq({}, eval('v:errors'))
|
||||
else
|
||||
eq({_TYPE={}, _VAL={-1, 2, 0, 0}}, eval('parsed[0]'))
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user