From 683b75d052038e33a6e7129d754ee9b7827071bf Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Wed, 22 Oct 2014 20:42:59 -0200 Subject: legacy tests: migrate test_insertcount --- test/functional/legacy/insertcount_spec.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 test/functional/legacy/insertcount_spec.lua (limited to 'test') diff --git a/test/functional/legacy/insertcount_spec.lua b/test/functional/legacy/insertcount_spec.lua new file mode 100644 index 0000000000..01236e1afe --- /dev/null +++ b/test/functional/legacy/insertcount_spec.lua @@ -0,0 +1,24 @@ +-- Tests for repeating insert and replace. + +local helpers = require('test.functional.helpers') +local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert +local execute, expect = helpers.execute, helpers.expect + +describe('insertcount', function() + setup(clear) + + it('is working', function() + insert([[ + First line + Second line + Last line]]) + + execute('/Second') + feed('4gro') + + expect([[ + First line + oooond line + Last line]]) + end) +end) -- cgit