Skip to content

Commit 53dae30

Browse files
committed
tests: @parameter.inner scoping
See #832
1 parent 6743140 commit 53dae30

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tests/select/python/selection_mode.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ def __init__(self, *arg):
66
my_list.append(arg_)
77

88
self.my_list = my_list
9+
10+
str.join(' ', map(lambda x: x + x, ['foo', 'bar', 'baz']))

tests/select/python_spec.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ describe('command equality Python:', function()
2525
run:compare_cmds('aligned_indent.py', { row = 1, col = 0, cmds = { 'dfn', 'd;' } })
2626
-- select using move
2727
run:compare_cmds('aligned_indent.py', { row = 1, col = 0, cmds = { 'd]a', 'v]ad', 'c]a' } })
28+
29+
-- test correct @parameter.inner scoping
30+
run:compare_cmds('selection_mode.py', { row = 10, col = 22, cmds = { 'dia', 'df)' } })
2831
run:compare_cmds(
2932
'selection_mode.py',
3033
{ row = 2, col = 4, cmds = { 'dam', 'dVam', 'vamd', 'Vamd' } }

0 commit comments

Comments
 (0)