insertcount_spec.lua 478 B

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