mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
test(old): reorder test_edit.vim to match upstream (#24837)
This commit is contained in:
@@ -1517,26 +1517,6 @@ func Test_edit_rightleft()
|
|||||||
bw!
|
bw!
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_edit_backtick()
|
|
||||||
next a\`b c
|
|
||||||
call assert_equal('a`b', expand('%'))
|
|
||||||
next
|
|
||||||
call assert_equal('c', expand('%'))
|
|
||||||
call assert_equal('a\`b c', expand('##'))
|
|
||||||
endfunc
|
|
||||||
|
|
||||||
func Test_edit_quit()
|
|
||||||
edit foo.txt
|
|
||||||
split
|
|
||||||
new
|
|
||||||
call setline(1, 'hello')
|
|
||||||
3wincmd w
|
|
||||||
redraw!
|
|
||||||
call assert_fails('1q', 'E37:')
|
|
||||||
bwipe! foo.txt
|
|
||||||
only
|
|
||||||
endfunc
|
|
||||||
|
|
||||||
func Test_edit_complete_very_long_name()
|
func Test_edit_complete_very_long_name()
|
||||||
if !has('unix')
|
if !has('unix')
|
||||||
" Long directory names only work on Unix.
|
" Long directory names only work on Unix.
|
||||||
@@ -1594,6 +1574,26 @@ func Test_edit_complete_very_long_name()
|
|||||||
set swapfile&
|
set swapfile&
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func Test_edit_backtick()
|
||||||
|
next a\`b c
|
||||||
|
call assert_equal('a`b', expand('%'))
|
||||||
|
next
|
||||||
|
call assert_equal('c', expand('%'))
|
||||||
|
call assert_equal('a\`b c', expand('##'))
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func Test_edit_quit()
|
||||||
|
edit foo.txt
|
||||||
|
split
|
||||||
|
new
|
||||||
|
call setline(1, 'hello')
|
||||||
|
3wincmd w
|
||||||
|
redraw!
|
||||||
|
call assert_fails('1q', 'E37:')
|
||||||
|
bwipe! foo.txt
|
||||||
|
only
|
||||||
|
endfunc
|
||||||
|
|
||||||
func Test_edit_alt()
|
func Test_edit_alt()
|
||||||
" Keeping the cursor line didn't happen when the first line has indent.
|
" Keeping the cursor line didn't happen when the first line has indent.
|
||||||
new
|
new
|
||||||
|
Reference in New Issue
Block a user