Skip to content

Commit a71760d

Browse files
committed
tests: check correct @function.inner when at end of function
1 parent 4603b4a commit a71760d

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
function a()
2+
print('foo')
3+
end
4+
5+
function b()
6+
print('bar')
7+
end

tests/select/lua_spec.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
local Runner = require('tests.select.common').Runner
2+
3+
local run = Runner:new(it, 'tests/select/lua', {
4+
tabstop = 2,
5+
shiftwidth = 2,
6+
softtabstop = 0,
7+
expandtab = true,
8+
})
9+
10+
describe('command equality Lua:', function()
11+
run:compare_cmds('selection_mode.lua', { row = 3, col = 0, cmds = { 'dim', 'k_D' } })
12+
end)

0 commit comments

Comments
 (0)