robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Justin M. KeyesMerge #40865 from justinmk/fixcif907614088

master
567 B27 linesraw
1-- Tests for repeating insert and replace.
2
3local n = require('test.functional.testnvim')()
4local t = require('test.testutil')
5
6local describe, it, setup = t.describe, t.it, t.setup
7local clear, feed, insert = n.clear, n.feed, n.insert
8local feed_command, expect = n.feed_command, n.expect
9
10describe('insertcount', function()
11  setup(clear)
12
13  it('is working', function()
14    insert([[
15      First line
16      Second line
17      Last line]])
18
19    feed_command('/Second')
20    feed('4gro')
21
22    expect([[
23      First line
24      oooond line
25      Last line]])
26  end)
27end)