legacy tests: migrate test81

This commit is contained in:
Rainer Borene
2014-10-22 22:24:29 -02:00
committed by Thiago de Arruda
parent 79cd4a98ec
commit 4ca353d3bd
3 changed files with 39 additions and 28 deletions

View File

@@ -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

View File

@@ -1,6 +0,0 @@
aaa two
z
y
bbb y
ccc
ddd yee y

View File

@@ -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)