2014-10-22 15:42:59 -07:00
|
|
|
-- Tests for repeating insert and replace.
|
|
|
|
|
2016-04-23 16:53:11 -07:00
|
|
|
local helpers = require('test.functional.helpers')(after_each)
|
2014-10-22 15:42:59 -07:00
|
|
|
local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert
|
2017-04-08 14:12:26 -07:00
|
|
|
local feed_command, expect = helpers.feed_command, helpers.expect
|
2014-10-22 15:42:59 -07:00
|
|
|
|
|
|
|
describe('insertcount', function()
|
|
|
|
setup(clear)
|
|
|
|
|
|
|
|
it('is working', function()
|
|
|
|
insert([[
|
|
|
|
First line
|
|
|
|
Second line
|
|
|
|
Last line]])
|
|
|
|
|
2017-04-08 14:12:26 -07:00
|
|
|
feed_command('/Second')
|
2014-10-22 15:42:59 -07:00
|
|
|
feed('4gro')
|
|
|
|
|
|
|
|
expect([[
|
|
|
|
First line
|
|
|
|
oooond line
|
|
|
|
Last line]])
|
|
|
|
end)
|
|
|
|
end)
|