mirror of
https://github.com/neovim/neovim.git
synced 2026-01-17 10:38:57 +10:00
legacy tests: migrate test81
This commit is contained in:
committed by
Thiago de Arruda
parent
79cd4a98ec
commit
4ca353d3bd
@@ -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
|
||||
@@ -1,6 +0,0 @@
|
||||
aaa two
|
||||
z
|
||||
y
|
||||
bbb y
|
||||
ccc
|
||||
ddd yee y
|
||||
39
test/functional/legacy/081_coptions_movement_spec.lua
Normal file
39
test/functional/legacy/081_coptions_movement_spec.lua
Normal 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)
|
||||
Reference in New Issue
Block a user