legacy tests: migrate test_insertcount

This commit is contained in:
Rainer Borene 2014-10-22 20:42:59 -02:00 committed by Thiago de Arruda
parent 5b7d9bbd08
commit 683b75d052
3 changed files with 24 additions and 17 deletions

View File

@ -1,14 +0,0 @@
Tests for repeating insert and replace.
STARTTEST
:so small.vim
:/Second
4gro
:/^First/,$wq! test.out
:" get here when failed and in Insert mode
:.wq! test.out
ENDTEST
First line
Second line
Last line

View File

@ -1,3 +0,0 @@
First line
ooooecond line
Last line

View File

@ -0,0 +1,24 @@
-- Tests for repeating insert and replace.
local helpers = require('test.functional.helpers')
local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert
local execute, expect = helpers.execute, helpers.expect
describe('insertcount', function()
setup(clear)
it('is working', function()
insert([[
First line
Second line
Last line]])
execute('/Second')
feed('4gro')
expect([[
First line
oooond line
Last line]])
end)
end)