diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-03-01 14:27:19 +0100 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2022-03-03 20:03:30 +0100 |
commit | f9faba88fdc46b2dd1a979a37ba61b000830ff3a (patch) | |
tree | 2780af6feccd0d488c32578f535257fa358b0813 /test/functional/lua/thread_spec.lua | |
parent | 7211d8ef21cd93365c5f0582c5a0115e84c011ce (diff) | |
download | rneovim-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.lua | 22 |
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() |