From 4ca353d3bdfc41250835dcaba727554a4d21243d Mon Sep 17 00:00:00 2001 From: Rainer Borene Date: Wed, 22 Oct 2014 22:24:29 -0200 Subject: [PATCH] legacy tests: migrate test81 --- src/nvim/testdir/test81.in | 22 ----------- src/nvim/testdir/test81.ok | 6 --- .../legacy/081_coptions_movement_spec.lua | 39 +++++++++++++++++++ 3 files changed, 39 insertions(+), 28 deletions(-) delete mode 100644 src/nvim/testdir/test81.in delete mode 100644 src/nvim/testdir/test81.ok create mode 100644 test/functional/legacy/081_coptions_movement_spec.lua diff --git a/src/nvim/testdir/test81.in b/src/nvim/testdir/test81.in deleted file mode 100644 index 82a6892a1d..0000000000 --- a/src/nvim/testdir/test81.in +++ /dev/null @@ -1,22 +0,0 @@ -Test for t movement command and 'cpo-;' setting - -STARTTEST -:set nocompatible viminfo+=nviminfo -:set cpo-=; -/firstline/ -j0tt;D -0fz;D -$Fy;D -$Ty;D:set cpo+=; -j0tt;;D -$Ty;;D:?firstline?+1,$w! test.out -:qa! -ENDTEST - -firstline -aaa two three four - zzz -yyy -bbb yee yoo four -ccc two three four -ddd yee yoo four diff --git a/src/nvim/testdir/test81.ok b/src/nvim/testdir/test81.ok deleted file mode 100644 index e9f17dc4f8..0000000000 --- a/src/nvim/testdir/test81.ok +++ /dev/null @@ -1,6 +0,0 @@ -aaa two - z -y -bbb y -ccc -ddd yee y diff --git a/test/functional/legacy/081_coptions_movement_spec.lua b/test/functional/legacy/081_coptions_movement_spec.lua new file mode 100644 index 0000000000..f27667b976 --- /dev/null +++ b/test/functional/legacy/081_coptions_movement_spec.lua @@ -0,0 +1,39 @@ +-- Test for t movement command and 'cpo-;' setting + +local helpers = require('test.functional.helpers') +local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert +local execute, expect = helpers.execute, helpers.expect + +describe('coptions', function() + setup(clear) + + it('is working', function() + insert([[ + aaa two three four + zzz + yyy + bbb yee yoo four + ccc two three four + ddd yee yoo four]]) + + execute('set cpo-=;') + + feed('gg0tt;D') + feed('j0fz;D') + feed('j$Fy;D') + feed('j$Ty;D') + + execute('set cpo+=;') + + feed('j0tt;;D') + feed('j$Ty;;D') + + expect([[ + aaa two + z + y + bbb y + ccc + ddd yee y]]) + end) +end)