diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-10-10 16:48:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-10 16:48:24 -0400 |
commit | b3e0d6708eca3cd22695d364ba2aca7401cc0f8c (patch) | |
tree | e2742ee0a6b33161887d9dab6069357e337aa302 /test/functional/lua/luaeval_spec.lua | |
parent | 62eec98d5feee9173ea2decb2d7cb72971c24f8b (diff) | |
parent | a8504638cd2497b3bdd0daf27dcc50903e1e2bb9 (diff) | |
download | rneovim-b3e0d6708eca3cd22695d364ba2aca7401cc0f8c.tar.gz rneovim-b3e0d6708eca3cd22695d364ba2aca7401cc0f8c.tar.bz2 rneovim-b3e0d6708eca3cd22695d364ba2aca7401cc0f8c.zip |
Merge pull request #15502 from seandewar/vim-8.1.1921
Add method call support for more built-ins: vim-patch:8.1.{1336,1952,1961,1984}
Diffstat (limited to 'test/functional/lua/luaeval_spec.lua')
-rw-r--r-- | test/functional/lua/luaeval_spec.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/lua/luaeval_spec.lua b/test/functional/lua/luaeval_spec.lua index 255e99032f..0675ec9abd 100644 --- a/test/functional/lua/luaeval_spec.lua +++ b/test/functional/lua/luaeval_spec.lua @@ -86,14 +86,15 @@ describe('luaeval()', function() -- meaningful later. it('correctly evaluates scalars', function() + -- Also test method call (->) syntax eq(1, funcs.luaeval('1')) - eq(0, eval('type(luaeval("1"))')) + eq(0, eval('"1"->luaeval()->type()')) eq(1.5, funcs.luaeval('1.5')) - eq(5, eval('type(luaeval("1.5"))')) + eq(5, eval('"1.5"->luaeval()->type()')) eq("test", funcs.luaeval('"test"')) - eq(1, eval('type(luaeval("\'test\'"))')) + eq(1, eval('"\'test\'"->luaeval()->type()')) eq('', funcs.luaeval('""')) eq('\000', funcs.luaeval([['\0']])) |