neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

insertcount_spec.lua (478B)


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