insertcount_spec.lua 522 B

12345678910111213141516171819202122232425
  1. -- Tests for repeating insert and replace.
  2. local helpers = require('test.functional.helpers')(after_each)
  3. local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert
  4. local feed_command, expect = helpers.feed_command, helpers.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)