Skip to content

Commit 1af9cde

Browse files
committed
Add a test for snake case too.
1 parent 6c60e9b commit 1af9cde

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

t/variable-segment.vim

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,13 @@ describe 'iv'
150150
Expect getline(1) == 'helloBeautiful'
151151
end
152152

153+
it 'selects single letter snake case sections'
154+
put! = 'a_thing_I_like'
155+
normal! 0
156+
normal civthe
157+
Expect getline(1) == 'the_thing_I_like'
158+
end
159+
153160
it 'selects single letter camel sections'
154161
put! = 'aThingILike'
155162
normal! 0

0 commit comments

Comments
 (0)