diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-03-22 10:59:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-22 10:59:38 +0100 |
commit | c45b5e2c5b0f02742099ebccc44462fe4203e99c (patch) | |
tree | 13811fb22e65a99413aa5373c41e8c77d99ca779 /test/functional/lua/commands_spec.lua | |
parent | 48ce2ef912cbbe43b85b45a8a97f8d240318718a (diff) | |
parent | a92b38934a2d00c13ee4d1969d994da15e0857ab (diff) | |
download | rneovim-c45b5e2c5b0f02742099ebccc44462fe4203e99c.tar.gz rneovim-c45b5e2c5b0f02742099ebccc44462fe4203e99c.tar.bz2 rneovim-c45b5e2c5b0f02742099ebccc44462fe4203e99c.zip |
Merge pull request #22743 from bfredl/luaequals
feat(lua): allow `:=expr` as a shorter version of `:lua =expr`
Diffstat (limited to 'test/functional/lua/commands_spec.lua')
-rw-r--r-- | test/functional/lua/commands_spec.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/lua/commands_spec.lua b/test/functional/lua/commands_spec.lua index 943095c51e..5bb9e0281b 100644 --- a/test/functional/lua/commands_spec.lua +++ b/test/functional/lua/commands_spec.lua @@ -146,6 +146,7 @@ describe(':lua command', function() it('prints result of =expr', function() exec_lua("x = 5") eq("5", exec_capture(':lua =x')) + eq("5", exec_capture('=x')) exec_lua("function x() return 'hello' end") eq('hello', exec_capture(':lua = x()')) exec_lua("x = {a = 1, b = 2}") @@ -165,7 +166,7 @@ describe(':lua command', function() false nil Error message]], - exec_capture(':lua =x(false)')) + exec_capture('=x(false)')) end) end) |