tests: add note to expect() message about snapshot_util()

This commit is contained in:
Björn Linse 2016-08-13 15:51:53 +02:00
parent f332eba16c
commit 725074aafc

View File

@ -234,8 +234,10 @@ function Screen:expect(expected, attr_ids, attr_ignore)
return (
'Row ' .. tostring(i) .. ' didn\'t match.\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)