mirror of
https://github.com/neovim/neovim.git
synced 2025-12-11 17:12:40 +00:00
legacy tests: migrate test66
This commit is contained in:
committed by
Thiago de Arruda
parent
963a146e8b
commit
7fc5d6fc8e
@@ -1,33 +0,0 @@
|
|||||||
|
|
||||||
Test for visual block shift and tab characters.
|
|
||||||
|
|
||||||
STARTTEST
|
|
||||||
:so small.vim
|
|
||||||
/^one
|
|
||||||
fe4jRugvr1:'<,'>w! test.out
|
|
||||||
/^abcdefgh
|
|
||||||
4jI j<<11|D
|
|
||||||
7|a
|
|
||||||
7|a
|
|
||||||
7|a 4k13|4j<
|
|
||||||
:$-5,$w >> test.out
|
|
||||||
:$-4,$s/\s\+//g
|
|
||||||
4kI j<<
|
|
||||||
7|a
|
|
||||||
7|a
|
|
||||||
7|a 4k13|4j3<
|
|
||||||
:$-4,$w >> test.out
|
|
||||||
:qa!
|
|
||||||
ENDTEST
|
|
||||||
|
|
||||||
one two three
|
|
||||||
one two three
|
|
||||||
one two three
|
|
||||||
one two three
|
|
||||||
one two three
|
|
||||||
|
|
||||||
abcdefghijklmnopqrstuvwxyz
|
|
||||||
abcdefghijklmnopqrstuvwxyz
|
|
||||||
abcdefghijklmnopqrstuvwxyz
|
|
||||||
abcdefghijklmnopqrstuvwxyz
|
|
||||||
abcdefghijklmnopqrstuvwxyz
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
on1 two three
|
|
||||||
on1 two three
|
|
||||||
on1 two three
|
|
||||||
on1 two three
|
|
||||||
on1 two three
|
|
||||||
|
|
||||||
abcdefghijklmnopqrstuvwxyz
|
|
||||||
abcdefghij
|
|
||||||
abc defghijklmnopqrstuvwxyz
|
|
||||||
abc defghijklmnopqrstuvwxyz
|
|
||||||
abc defghijklmnopqrstuvwxyz
|
|
||||||
abcdefghijklmnopqrstuvwxyz
|
|
||||||
abcdefghij
|
|
||||||
abc defghijklmnopqrstuvwxyz
|
|
||||||
abc defghijklmnopqrstuvwxyz
|
|
||||||
abc defghijklmnopqrstuvwxyz
|
|
||||||
64
test/functional/legacy/066_visual_block_tab_spec.lua
Normal file
64
test/functional/legacy/066_visual_block_tab_spec.lua
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
-- vim: set foldmethod=marker foldmarker=[[,]] :
|
||||||
|
-- Test for visual block shift and tab characters.
|
||||||
|
|
||||||
|
local helpers = require('test.functional.helpers')
|
||||||
|
local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert
|
||||||
|
local execute, expect = helpers.execute, helpers.expect
|
||||||
|
|
||||||
|
describe('visual block shift and tab characters', function()
|
||||||
|
setup(clear)
|
||||||
|
|
||||||
|
it('is working', function()
|
||||||
|
insert([[
|
||||||
|
one two three
|
||||||
|
one two three
|
||||||
|
one two three
|
||||||
|
one two three
|
||||||
|
one two three
|
||||||
|
|
||||||
|
abcdefghijklmnopqrstuvwxyz
|
||||||
|
abcdefghijklmnopqrstuvwxyz
|
||||||
|
abcdefghijklmnopqrstuvwxyz
|
||||||
|
abcdefghijklmnopqrstuvwxyz
|
||||||
|
abcdefghijklmnopqrstuvwxyz]])
|
||||||
|
|
||||||
|
feed('gg')
|
||||||
|
feed([[fe<C-v>4jR<esc>ugvr1:'<,'>yank A<cr>]])
|
||||||
|
execute('/^abcdefgh')
|
||||||
|
feed('<C-v>4jI <esc>j<<11|D')
|
||||||
|
feed('j7|a <esc>')
|
||||||
|
feed('j7|a <esc>')
|
||||||
|
feed('j7|a <esc>4k13|<C-v>4j<')
|
||||||
|
execute('$-5,$yank A')
|
||||||
|
execute([[$-4,$s/\s\+//g]])
|
||||||
|
feed('<C-v>4kI <esc>j<<')
|
||||||
|
feed('j7|a <esc>')
|
||||||
|
feed('j7|a <esc>')
|
||||||
|
feed('j7|a <esc>4k13|<C-v>4j3<')
|
||||||
|
execute('$-4,$yank A')
|
||||||
|
|
||||||
|
-- Put @a and clean empty lines
|
||||||
|
execute('%d')
|
||||||
|
execute('0put a')
|
||||||
|
execute('$d')
|
||||||
|
|
||||||
|
-- Assert buffer contents.
|
||||||
|
expect([[
|
||||||
|
on1 two three
|
||||||
|
on1 two three
|
||||||
|
on1 two three
|
||||||
|
on1 two three
|
||||||
|
on1 two three
|
||||||
|
|
||||||
|
abcdefghijklmnopqrstuvwxyz
|
||||||
|
abcdefghij
|
||||||
|
abc defghijklmnopqrstuvwxyz
|
||||||
|
abc defghijklmnopqrstuvwxyz
|
||||||
|
abc defghijklmnopqrstuvwxyz
|
||||||
|
abcdefghijklmnopqrstuvwxyz
|
||||||
|
abcdefghij
|
||||||
|
abc defghijklmnopqrstuvwxyz
|
||||||
|
abc defghijklmnopqrstuvwxyz
|
||||||
|
abc defghijklmnopqrstuvwxyz]])
|
||||||
|
end)
|
||||||
|
end)
|
||||||
Reference in New Issue
Block a user