mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00
refactor(lua): reorganize builtin modules, phase 1
This commit is contained in:
@@ -102,6 +102,28 @@ describe('thread', function()
|
||||
print in thread |
|
||||
]])
|
||||
end)
|
||||
|
||||
it('vim.inspect', function()
|
||||
exec_lua [[
|
||||
local thread = vim.loop.new_thread(function()
|
||||
print(vim.inspect({1,2}))
|
||||
end)
|
||||
vim.loop.thread_join(thread)
|
||||
]]
|
||||
|
||||
screen:expect([[
|
||||
^ |
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{ 1, 2 } |
|
||||
]])
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('vim.*', function()
|
||||
|
Reference in New Issue
Block a user