refactor(lua): reorganize builtin modules, phase 1

This commit is contained in:
bfredl
2022-03-01 14:27:19 +01:00
parent 7211d8ef21
commit f9faba88fd
9 changed files with 183 additions and 135 deletions

View File

@@ -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()