From 65fb622000af8e3dbb65480e1581758ecf4ba3e2 Mon Sep 17 00:00:00 2001 From: ZyX Date: Sun, 9 Apr 2017 00:12:26 +0300 Subject: functests: Replace execute with either command or feed_command Hope this will make people using feed_command less likely: this hides bugs. Already found at least two: 1. msgpackparse() will show internal error: hash_add() in case of duplicate keys, though it will still work correctly. Currently silenced. 2. ttimeoutlen was spelled incorrectly, resulting in option not being set when expected. Test was still functioning somehow though. Currently fixed. --- test/functional/legacy/marks_spec.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/functional/legacy/marks_spec.lua') diff --git a/test/functional/legacy/marks_spec.lua b/test/functional/legacy/marks_spec.lua index 6ecba70f08..bcec179ca2 100644 --- a/test/functional/legacy/marks_spec.lua +++ b/test/functional/legacy/marks_spec.lua @@ -1,6 +1,6 @@ local helpers = require('test.functional.helpers')(after_each) local feed, insert, source = helpers.feed, helpers.insert, helpers.source -local clear, execute, expect = helpers.clear, helpers.execute, helpers.expect +local clear, feed_command, expect = helpers.clear, helpers.feed_command, helpers.expect describe('marks', function() before_each(function() @@ -9,14 +9,14 @@ describe('marks', function() it('restores a deleted mark after delete-undo-redo-undo', function() insert([[ - + textline A textline B textline C - + Results:]]) - execute([[:/^\t/+1]]) + feed_command([[:/^\t/+1]]) feed([[madduu]]) source([[ let g:a = string(getpos("'a")) @@ -24,11 +24,11 @@ describe('marks', function() ]]) expect([=[ - + textline A textline B textline C - + Results: Mark after delete-undo-redo-undo: [0, 3, 2, 0]]=]) end) -- cgit From 126b2ca077718a02c086039c8f98ef267cf9eb3e Mon Sep 17 00:00:00 2001 From: KillTheMule Date: Sun, 24 Sep 2017 20:42:48 +0200 Subject: test: lint whitespace in legacy/ (#7308) --- test/functional/legacy/marks_spec.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'test/functional/legacy/marks_spec.lua') diff --git a/test/functional/legacy/marks_spec.lua b/test/functional/legacy/marks_spec.lua index bcec179ca2..470ea49652 100644 --- a/test/functional/legacy/marks_spec.lua +++ b/test/functional/legacy/marks_spec.lua @@ -7,6 +7,7 @@ describe('marks', function() clear() end) + -- luacheck: ignore 621 (Indentation) it('restores a deleted mark after delete-undo-redo-undo', function() insert([[ -- cgit