mirror of
https://github.com/neovim/neovim.git
synced 2025-10-10 20:06:33 +00:00
vim-patch:8.0.1140: still old style tests
Problem: Still old style tests.
Solution: Convert two tests to new style. (Yegappan Lakshmanan)
bb3e6416f1
This commit is contained in:
@@ -29,6 +29,7 @@ source test_put.vim
|
|||||||
source test_recover.vim
|
source test_recover.vim
|
||||||
source test_regexp_utf8.vim
|
source test_regexp_utf8.vim
|
||||||
source test_scroll_opt.vim
|
source test_scroll_opt.vim
|
||||||
|
source test_sort.vim
|
||||||
source test_source_utf8.vim
|
source test_source_utf8.vim
|
||||||
source test_sha256.vim
|
source test_sha256.vim
|
||||||
source test_statusline.vim
|
source test_statusline.vim
|
||||||
|
1184
src/nvim/testdir/test_sort.vim
Normal file
1184
src/nvim/testdir/test_sort.vim
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1273,6 +1273,26 @@ func Test_user_command_with_bang()
|
|||||||
delcommand Nieuw
|
delcommand Nieuw
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
" Test for script-local function
|
||||||
|
func <SID>DoLast()
|
||||||
|
call append(line('$'), "last line")
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func s:DoNothing()
|
||||||
|
call append(line('$'), "nothing line")
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
func Test_script_local_func()
|
||||||
|
set nocp viminfo+=nviminfo
|
||||||
|
new
|
||||||
|
nnoremap <buffer> _x :call <SID>DoNothing()<bar>call <SID>DoLast()<bar>delfunc <SID>DoNothing<bar>delfunc <SID>DoLast<cr>
|
||||||
|
|
||||||
|
normal _x
|
||||||
|
call assert_equal('nothing line', getline(2))
|
||||||
|
call assert_equal('last line', getline(3))
|
||||||
|
enew! | close
|
||||||
|
endfunc
|
||||||
|
|
||||||
"-------------------------------------------------------------------------------
|
"-------------------------------------------------------------------------------
|
||||||
" Modelines {{{1
|
" Modelines {{{1
|
||||||
" vim: ts=8 sw=4 tw=80 fdm=marker
|
" vim: ts=8 sw=4 tw=80 fdm=marker
|
||||||
|
Reference in New Issue
Block a user