aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/thread_spec.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-03-01 14:27:19 +0100
committerbfredl <bjorn.linse@gmail.com>2022-03-03 20:03:30 +0100
commitf9faba88fdc46b2dd1a979a37ba61b000830ff3a (patch)
tree2780af6feccd0d488c32578f535257fa358b0813 /test/functional/lua/thread_spec.lua
parent7211d8ef21cd93365c5f0582c5a0115e84c011ce (diff)
downloadrneovim-f9faba88fdc46b2dd1a979a37ba61b000830ff3a.tar.gz
rneovim-f9faba88fdc46b2dd1a979a37ba61b000830ff3a.tar.bz2
rneovim-f9faba88fdc46b2dd1a979a37ba61b000830ff3a.zip
refactor(lua): reorganize builtin modules, phase 1
Diffstat (limited to 'test/functional/lua/thread_spec.lua')
-rw-r--r--test/functional/lua/thread_spec.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/functional/lua/thread_spec.lua b/test/functional/lua/thread_spec.lua
index 2e0ab7bdff..e183ce3a57 100644
--- a/test/functional/lua/thread_spec.lua
+++ b/test/functional/lua/thread_spec.lua
@@ -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()