diff options
author | Daniel Hahler <git@thequod.de> | 2019-07-13 00:50:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-13 00:50:52 +0200 |
commit | 47310274478b15b546fbf0dc95535417aa33a582 (patch) | |
tree | 0dba7a3e13532e639517f8632cfa512ec08f6935 /test/functional/ui/screen.lua | |
parent | 108eb4201f193441c19073ea2bb7780086c46385 (diff) | |
download | rneovim-47310274478b15b546fbf0dc95535417aa33a582.tar.gz rneovim-47310274478b15b546fbf0dc95535417aa33a582.tar.bz2 rneovim-47310274478b15b546fbf0dc95535417aa33a582.zip |
tests: use vim.inspect (#10485)
The inspect modules is vendored as `vim.inspect`, and therefore it makes
sense to use this in tests also.
Ref: https://github.com/neovim/neovim/issues/6580
Ref: https://github.com/neovim/neovim/commit/bb3aa824b
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r-- | test/functional/ui/screen.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index f1254b68f6..31669f5578 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -81,7 +81,7 @@ local dedent = helpers.dedent local get_session = helpers.get_session local create_callindex = helpers.create_callindex -local inspect = require('inspect') +local inspect = require('vim.inspect') local function isempty(v) return type(v) == 'table' and next(v) == nil @@ -492,7 +492,7 @@ function Screen:_wait(check, flags) end elseif success_seen and #args > 0 then failure_after_success = true - --print(require('inspect')(args)) + -- print(inspect(args)) end return true @@ -576,8 +576,7 @@ end function Screen:_redraw(updates) local did_flush = false for k, update in ipairs(updates) do - -- print('--') - -- print(require('inspect')(update)) + -- print('--', inspect(update)) local method = update[1] for i = 2, #update do local handler_name = '_handle_'..method @@ -1339,7 +1338,7 @@ end function Screen:_pprint_hlstate(item) - --print(require('inspect')(item)) + -- print(inspect(item)) local attrdict = "{"..self:_pprint_attrs(item[1]).."}, " local attrdict2, hlinfo if self._hlstate_cterm then |