mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
tests: add note to expect() message about snapshot_util()
This commit is contained in:
parent
f332eba16c
commit
725074aafc
@ -234,8 +234,10 @@ function Screen:expect(expected, attr_ids, attr_ignore)
|
|||||||
return (
|
return (
|
||||||
'Row ' .. tostring(i) .. ' didn\'t match.\n'
|
'Row ' .. tostring(i) .. ' didn\'t match.\n'
|
||||||
.. 'Expected:\n|' .. table.concat(msg_expected_rows, '|\n|') .. '|\n'
|
.. 'Expected:\n|' .. table.concat(msg_expected_rows, '|\n|') .. '|\n'
|
||||||
.. 'Actual:\n|' .. table.concat(actual_rows, '|\n|') .. '|'
|
.. 'Actual:\n|' .. table.concat(actual_rows, '|\n|') .. '|\n\n' .. [[
|
||||||
)
|
To print the expect() call that would assert the current screen state, use
|
||||||
|
screen:snaphot_util(). In case of non-deterministic failures, use
|
||||||
|
screen:redraw_debug() to show all intermediate screen states. ]])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user