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/old | |
| 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/old')
| -rw-r--r-- | test/old/testdir/test_ex_equal.vim | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/test/old/testdir/test_ex_equal.vim b/test/old/testdir/test_ex_equal.vim index 05ad276836..32e23704eb 100644 --- a/test/old/testdir/test_ex_equal.vim +++ b/test/old/testdir/test_ex_equal.vim @@ -7,6 +7,19 @@ func Test_ex_equal() let a = execute('=') call assert_equal("\n2", a) + let a = execute('.=') + call assert_equal("\n1", a) + + call assert_fails('3=', 'E16:') + bwipe! +endfunc + +func Test_ex_equal_arg() + throw 'skipped: Nvim evaluates lua with := [arg]' + + new + call setline(1, ["foo\tbar", "bar\tfoo"]) + let a = execute('=#') call assert_equal("\n2\n 1 foo bar", a) @@ -22,10 +35,6 @@ func Test_ex_equal() let a = execute('=p#') call assert_equal("\n2\n 1 foo bar", a) - let a = execute('.=') - call assert_equal("\n1", a) - - call assert_fails('3=', 'E16:') call assert_fails('=x', 'E488:') bwipe! |