mirror of
https://github.com/vim/vim
synced 2025-07-15 16:51:57 +00:00
patch 9.1.1524: tests: too many imports in the test suite
Problem: tests: too many imports in the test suite Solution: Clean up the imported scripts Most tests make use of check.vim, so let's just source it once in runtest.vim instead of having each test manually source it. runtest.vim already sources shared.vim, which again sources view_util.vim, so we don't need to source those two common dependencies in all the other tests And then check.vim sources term_util.vim already, so we can in addition drop sourcing it explicitly in each single test script. Note: test_expand_func.vim had to be updated to account for the changed number of sourced files. And finally check.vim uses line-continuation so let's also explicitly enable line continuation via the 'cpo' option value. related: #17677 Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@ -1,6 +1,10 @@
|
|||||||
source shared.vim
|
source shared.vim
|
||||||
source term_util.vim
|
source term_util.vim
|
||||||
|
|
||||||
|
" uses line-continuation
|
||||||
|
let s:cpo_save = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
command -nargs=1 MissingFeature throw 'Skipped: ' .. <args> .. ' feature missing'
|
command -nargs=1 MissingFeature throw 'Skipped: ' .. <args> .. ' feature missing'
|
||||||
|
|
||||||
" Command to check for the presence of a feature.
|
" Command to check for the presence of a feature.
|
||||||
@ -324,4 +328,7 @@ func CheckGithubActions()
|
|||||||
throw "Skipped: FIXME: this test doesn't work on Github Actions CI"
|
throw "Skipped: FIXME: this test doesn't work on Github Actions CI"
|
||||||
endif
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
let &cpo = s:cpo_save
|
||||||
|
unlet s:cpo_save
|
||||||
" vim: shiftwidth=2 sts=2 expandtab
|
" vim: shiftwidth=2 sts=2 expandtab
|
||||||
|
@ -106,6 +106,9 @@ source setup.vim
|
|||||||
" Needed for RunningWithValgrind().
|
" Needed for RunningWithValgrind().
|
||||||
source shared.vim
|
source shared.vim
|
||||||
|
|
||||||
|
" Needed for the various Check commands
|
||||||
|
source check.vim
|
||||||
|
|
||||||
" For consistency run all tests with 'nocompatible' set.
|
" For consistency run all tests with 'nocompatible' set.
|
||||||
" This also enables use of line continuation.
|
" This also enables use of line continuation.
|
||||||
set nocp viminfo+=nviminfo
|
set nocp viminfo+=nviminfo
|
||||||
|
@ -5,9 +5,6 @@ if exists('*VerifyScreenDump')
|
|||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
source term_util.vim
|
|
||||||
|
|
||||||
" Skip the rest if there is no terminal feature at all.
|
" Skip the rest if there is no terminal feature at all.
|
||||||
if !has('terminal')
|
if !has('terminal')
|
||||||
finish
|
finish
|
||||||
|
@ -2,11 +2,8 @@
|
|||||||
" NOTE: This just checks if the code works. If you know Arabic please add
|
" NOTE: This just checks if the code works. If you know Arabic please add
|
||||||
" functional tests that check the shaping works with real text.
|
" functional tests that check the shaping works with real text.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
CheckFeature arabic
|
CheckFeature arabic
|
||||||
|
|
||||||
source view_util.vim
|
|
||||||
|
|
||||||
" Return list of Unicode characters at line lnum.
|
" Return list of Unicode characters at line lnum.
|
||||||
" Combining characters are treated as a single item.
|
" Combining characters are treated as a single item.
|
||||||
func s:get_chars(lnum)
|
func s:get_chars(lnum)
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
" Test argument list commands
|
" Test argument list commands
|
||||||
|
|
||||||
source check.vim
|
|
||||||
source shared.vim
|
|
||||||
source term_util.vim
|
|
||||||
|
|
||||||
func Reset_arglist()
|
func Reset_arglist()
|
||||||
args a | %argd
|
args a | %argd
|
||||||
endfunc
|
endfunc
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
" Test that the methods used for testing work.
|
" Test that the methods used for testing work.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
source term_util.vim
|
|
||||||
|
|
||||||
func Test_assert_false()
|
func Test_assert_false()
|
||||||
call assert_equal(0, assert_false(0))
|
call assert_equal(0, assert_false(0))
|
||||||
call assert_equal(0, assert_false(v:false))
|
call assert_equal(0, assert_false(v:false))
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" Test 'autochdir' behavior
|
" Test 'autochdir' behavior
|
||||||
|
|
||||||
source check.vim
|
|
||||||
CheckOption autochdir
|
CheckOption autochdir
|
||||||
|
|
||||||
func Test_set_filename()
|
func Test_set_filename()
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
" Tests for autocommands
|
" Tests for autocommands
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
source check.vim
|
|
||||||
source term_util.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
import './vim9.vim' as v9
|
import './vim9.vim' as v9
|
||||||
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
" Tests for the backup function
|
" Tests for the backup function
|
||||||
|
|
||||||
source check.vim
|
|
||||||
|
|
||||||
func Test_backup()
|
func Test_backup()
|
||||||
set backup backupdir=. backupskip=
|
set backup backupdir=. backupskip=
|
||||||
new
|
new
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
" Tests for 'balloonevalterm'.
|
" Tests for 'balloonevalterm'.
|
||||||
" A few tests only work in the terminal.
|
" A few tests only work in the terminal.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
CheckNotGui
|
CheckNotGui
|
||||||
CheckFeature balloon_eval_term
|
CheckFeature balloon_eval_term
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" Tests for 'ballooneval' in the GUI.
|
" Tests for 'ballooneval' in the GUI.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
CheckGui
|
CheckGui
|
||||||
CheckFeature balloon_eval
|
CheckFeature balloon_eval
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" Test for benchmarking the RE engine
|
" Test for benchmarking the RE engine
|
||||||
|
|
||||||
source check.vim
|
|
||||||
CheckFeature reltime
|
CheckFeature reltime
|
||||||
|
|
||||||
func Measure(file, pattern, arg)
|
func Measure(file, pattern, arg)
|
||||||
|
@ -4,10 +4,8 @@
|
|||||||
" while the test is run, the breakindent caching gets in its way.
|
" while the test is run, the breakindent caching gets in its way.
|
||||||
" It helps to change the tabstop setting and force a redraw (e.g. see
|
" It helps to change the tabstop setting and force a redraw (e.g. see
|
||||||
" Test_breakindent08())
|
" Test_breakindent08())
|
||||||
source check.vim
|
|
||||||
CheckOption breakindent
|
CheckOption breakindent
|
||||||
|
|
||||||
source view_util.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
|
|
||||||
func SetUp()
|
func SetUp()
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
" Tests for Vim buffer
|
" Tests for Vim buffer
|
||||||
|
|
||||||
source check.vim
|
|
||||||
|
|
||||||
" Test for the :bunload command with an offset
|
" Test for the :bunload command with an offset
|
||||||
func Test_bunload_with_offset()
|
func Test_bunload_with_offset()
|
||||||
%bwipe!
|
%bwipe!
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
" Tests for setbufline(), getbufline(), appendbufline(), deletebufline()
|
" Tests for setbufline(), getbufline(), appendbufline(), deletebufline()
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
source check.vim
|
|
||||||
|
|
||||||
func Test_setbufline_getbufline()
|
func Test_setbufline_getbufline()
|
||||||
" similar to Test_set_get_bufline()
|
" similar to Test_set_get_bufline()
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
" Tests for the getbufinfo(), getwininfo() and gettabinfo() functions
|
" Tests for the getbufinfo(), getwininfo() and gettabinfo() functions
|
||||||
|
|
||||||
source check.vim
|
|
||||||
|
|
||||||
func Test_getbufwintabinfo()
|
func Test_getbufwintabinfo()
|
||||||
CheckFeature quickfix
|
CheckFeature quickfix
|
||||||
|
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
" Test for :cd and chdir()
|
" Test for :cd and chdir()
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
source check.vim
|
|
||||||
|
|
||||||
func Test_cd_large_path()
|
func Test_cd_large_path()
|
||||||
" This used to crash with a heap write overflow.
|
" This used to crash with a heap write overflow.
|
||||||
call assert_fails('cd ' . repeat('x', 5000), 'E344:')
|
call assert_fails('cd ' . repeat('x', 5000), 'E344:')
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" Tests for the :cdo, :cfdo, :ldo and :lfdo commands
|
" Tests for the :cdo, :cfdo, :ldo and :lfdo commands
|
||||||
|
|
||||||
source check.vim
|
|
||||||
CheckFeature quickfix
|
CheckFeature quickfix
|
||||||
|
|
||||||
" Create the files used by the tests
|
" Create the files used by the tests
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
" Test for channel and job functions.
|
" Test for channel and job functions.
|
||||||
|
|
||||||
" When +channel is supported then +job is too, so we don't check for that.
|
" When +channel is supported then +job is too, so we don't check for that.
|
||||||
source check.vim
|
|
||||||
CheckFeature channel
|
CheckFeature channel
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
source view_util.vim
|
|
||||||
|
|
||||||
let s:python = PythonProg()
|
let s:python = PythonProg()
|
||||||
if s:python == ''
|
if s:python == ''
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" Tests for the +clientserver feature.
|
" Tests for the +clientserver feature.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
CheckFeature job
|
CheckFeature job
|
||||||
|
|
||||||
if !has('clientserver')
|
if !has('clientserver')
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
" Tests for clipmethod
|
" Tests for clipmethod
|
||||||
|
|
||||||
source check.vim
|
|
||||||
source shared.vim
|
|
||||||
source window_manager.vim
|
source window_manager.vim
|
||||||
|
|
||||||
CheckFeature clipboard_working
|
CheckFeature clipboard_working
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
" Tests for editing the command line.
|
" Tests for editing the command line.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
source view_util.vim
|
|
||||||
source shared.vim
|
|
||||||
import './vim9.vim' as v9
|
import './vim9.vim' as v9
|
||||||
|
|
||||||
func SetUp()
|
func SetUp()
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" Tests for editing the command line.
|
" Tests for editing the command line.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
|
|
||||||
func Test_getcmdwintype()
|
func Test_getcmdwintype()
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
" Test the :compiler command
|
" Test the :compiler command
|
||||||
|
|
||||||
source check.vim
|
|
||||||
source shared.vim
|
|
||||||
|
|
||||||
func Test_compiler()
|
func Test_compiler()
|
||||||
CheckExecutable perl
|
CheckExecutable perl
|
||||||
CheckFeature quickfix
|
CheckFeature quickfix
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
" Tests for 'conceal'.
|
" Tests for 'conceal'.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
CheckFeature conceal
|
CheckFeature conceal
|
||||||
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
source view_util.vim
|
|
||||||
|
|
||||||
func Test_conceal_two_windows()
|
func Test_conceal_two_windows()
|
||||||
CheckScreendump
|
CheckScreendump
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
" Test for the various 'cpoptions' (cpo) flags
|
" Test for the various 'cpoptions' (cpo) flags
|
||||||
|
|
||||||
source check.vim
|
|
||||||
source shared.vim
|
|
||||||
source view_util.vim
|
|
||||||
|
|
||||||
" Test for the 'a' flag in 'cpo'. Reading a file should set the alternate
|
" Test for the 'a' flag in 'cpo'. Reading a file should set the alternate
|
||||||
" file name.
|
" file name.
|
||||||
func Test_cpo_a()
|
func Test_cpo_a()
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
" Some tests, that used to crash Vim
|
" Some tests, that used to crash Vim
|
||||||
source check.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
|
|
||||||
CheckScreendump
|
CheckScreendump
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
" Tests for encryption.
|
" Tests for encryption.
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
source check.vim
|
|
||||||
CheckFeature cryptv
|
CheckFeature cryptv
|
||||||
|
|
||||||
" Use the xxd command from:
|
" Use the xxd command from:
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" Test for cscope commands.
|
" Test for cscope commands.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
CheckFeature cscope
|
CheckFeature cscope
|
||||||
CheckFeature quickfix
|
CheckFeature quickfix
|
||||||
CheckExecutable cscope
|
CheckExecutable cscope
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
" Tests for cursor() and other functions that get/set the cursor position
|
" Tests for cursor() and other functions that get/set the cursor position
|
||||||
|
|
||||||
source check.vim
|
|
||||||
|
|
||||||
func Test_wrong_arguments()
|
func Test_wrong_arguments()
|
||||||
call assert_fails('call cursor(1. 3)', 'E474:')
|
call assert_fails('call cursor(1. 3)', 'E474:')
|
||||||
call assert_fails('call cursor(test_null_list())', 'E474:')
|
call assert_fails('call cursor(test_null_list())', 'E474:')
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" Test for cursorline and cursorlineopt
|
" Test for cursorline and cursorlineopt
|
||||||
|
|
||||||
source check.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
|
|
||||||
func s:screen_attr(lnum) abort
|
func s:screen_attr(lnum) abort
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
" Tests for not changing curswant
|
" Tests for not changing curswant
|
||||||
|
|
||||||
source check.vim
|
|
||||||
source term_util.vim
|
|
||||||
|
|
||||||
func Test_curswant()
|
func Test_curswant()
|
||||||
new
|
new
|
||||||
call append(0, ['1234567890', '12345'])
|
call append(0, ['1234567890', '12345'])
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
" Tests for the Vim script debug commands
|
" Tests for the Vim script debug commands
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
source check.vim
|
|
||||||
|
|
||||||
CheckRunVimInTerminal
|
CheckRunVimInTerminal
|
||||||
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
" Test for delete().
|
" Test for delete().
|
||||||
|
|
||||||
source check.vim
|
|
||||||
source term_util.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
|
|
||||||
func Test_file_delete()
|
func Test_file_delete()
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
" Tests for diff mode
|
" Tests for diff mode
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
source check.vim
|
|
||||||
source view_util.vim
|
|
||||||
|
|
||||||
func Test_diff_fold_sync()
|
func Test_diff_fold_sync()
|
||||||
enew!
|
enew!
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
" Tests for digraphs
|
" Tests for digraphs
|
||||||
|
|
||||||
source check.vim
|
|
||||||
CheckFeature digraphs
|
CheckFeature digraphs
|
||||||
source term_util.vim
|
|
||||||
|
|
||||||
func Put_Dig(chars)
|
func Put_Dig(chars)
|
||||||
exe "norm! o\<c-k>".a:chars
|
exe "norm! o\<c-k>".a:chars
|
||||||
|
@ -4,8 +4,6 @@ if !has('gui_running') && has('unix')
|
|||||||
set term=ansi
|
set term=ansi
|
||||||
endif
|
endif
|
||||||
|
|
||||||
source view_util.vim
|
|
||||||
source check.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
|
|
||||||
func Test_display_foldcolumn()
|
func Test_display_foldcolumn()
|
||||||
|
@ -4,9 +4,7 @@ if exists("+t_kD")
|
|||||||
let &t_kD="[3;*~"
|
let &t_kD="[3;*~"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
source check.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
source view_util.vim
|
|
||||||
|
|
||||||
" Needs to come first until the bug in getchar() is
|
" Needs to come first until the bug in getchar() is
|
||||||
" fixed: https://groups.google.com/d/msg/vim_dev/fXL9yme4H4c/bOR-U6_bAQAJ
|
" fixed: https://groups.google.com/d/msg/vim_dev/fXL9yme4H4c/bOR-U6_bAQAJ
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
scriptencoding utf-8
|
scriptencoding utf-8
|
||||||
|
|
||||||
source check.vim
|
|
||||||
|
|
||||||
func Test_environ()
|
func Test_environ()
|
||||||
unlet! $TESTENV
|
unlet! $TESTENV
|
||||||
call assert_equal(0, has_key(environ(), 'TESTENV'))
|
call assert_equal(0, has_key(environ(), 'TESTENV'))
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
" Test whether glob()/globpath() return correct results with certain escaped
|
" Test whether glob()/globpath() return correct results with certain escaped
|
||||||
" characters.
|
" characters.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
|
|
||||||
func SetUp()
|
func SetUp()
|
||||||
" consistent sorting of file names
|
" consistent sorting of file names
|
||||||
set nofileignorecase
|
set nofileignorecase
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" Tests for various eval things.
|
" Tests for various eval things.
|
||||||
|
|
||||||
source view_util.vim
|
|
||||||
source shared.vim
|
source shared.vim
|
||||||
import './vim9.vim' as v9
|
import './vim9.vim' as v9
|
||||||
|
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
" Test editing line in Ex mode (see :help Q and :help gQ).
|
" Test editing line in Ex mode (see :help Q and :help gQ).
|
||||||
|
|
||||||
source check.vim
|
|
||||||
source shared.vim
|
|
||||||
|
|
||||||
" Helper function to test editing line in Q Ex mode
|
" Helper function to test editing line in Q Ex mode
|
||||||
func Ex_Q(cmd)
|
func Ex_Q(cmd)
|
||||||
" Is there a simpler way to test editing Ex line?
|
" Is there a simpler way to test editing Ex line?
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
" Tests for various Ex commands.
|
" Tests for various Ex commands.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
source shared.vim
|
|
||||||
source term_util.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
|
|
||||||
func Test_ex_delete()
|
func Test_ex_delete()
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
" test execute()
|
" test execute()
|
||||||
|
|
||||||
source view_util.vim
|
|
||||||
source check.vim
|
|
||||||
import './vim9.vim' as v9
|
import './vim9.vim' as v9
|
||||||
source term_util.vim
|
|
||||||
|
|
||||||
func NestedEval()
|
func NestedEval()
|
||||||
let nested = execute('echo "nested\nlines"')
|
let nested = execute('echo "nested\nlines"')
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
" Tests for exiting Vim.
|
" Tests for exiting Vim.
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
source check.vim
|
|
||||||
|
|
||||||
func Test_exiting()
|
func Test_exiting()
|
||||||
let after =<< trim [CODE]
|
let after =<< trim [CODE]
|
||||||
au QuitPre * call writefile(["QuitPre"], "Xtestout")
|
au QuitPre * call writefile(["QuitPre"], "Xtestout")
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
" Test for expanding file names
|
" Test for expanding file names
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
source check.vim
|
|
||||||
|
|
||||||
func Test_with_directories()
|
func Test_with_directories()
|
||||||
call mkdir('Xdir1')
|
call mkdir('Xdir1')
|
||||||
call mkdir('Xdir2')
|
call mkdir('Xdir2')
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
" Tests for expand()
|
" Tests for expand()
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
|
|
||||||
let s:sfile = expand('<sfile>')
|
let s:sfile = expand('<sfile>')
|
||||||
let s:slnum = str2nr(expand('<slnum>'))
|
let s:slnum = str2nr(expand('<slnum>'))
|
||||||
let s:sflnum = str2nr(expand('<sflnum>'))
|
let s:sflnum = str2nr(expand('<sflnum>'))
|
||||||
@ -20,20 +18,20 @@ endfunc
|
|||||||
|
|
||||||
" This test depends on the location in the test file, put it first.
|
" This test depends on the location in the test file, put it first.
|
||||||
func Test_expand_sflnum()
|
func Test_expand_sflnum()
|
||||||
call assert_equal(7, s:sflnum)
|
call assert_equal(5, s:sflnum)
|
||||||
call assert_equal(24, str2nr(expand('<sflnum>')))
|
call assert_equal(22, str2nr(expand('<sflnum>')))
|
||||||
|
|
||||||
" Line-continuation
|
" Line-continuation
|
||||||
call assert_equal(
|
call assert_equal(
|
||||||
\ 27,
|
\ 25,
|
||||||
\ str2nr(expand('<sflnum>')))
|
\ str2nr(expand('<sflnum>')))
|
||||||
|
|
||||||
" Call in script-local function
|
" Call in script-local function
|
||||||
call assert_equal(18, s:expand_sflnum())
|
call assert_equal(16, s:expand_sflnum())
|
||||||
|
|
||||||
" Call in command
|
" Call in command
|
||||||
command Flnum echo expand('<sflnum>')
|
command Flnum echo expand('<sflnum>')
|
||||||
call assert_equal(36, str2nr(trim(execute('Flnum'))))
|
call assert_equal(34, str2nr(trim(execute('Flnum'))))
|
||||||
delcommand Flnum
|
delcommand Flnum
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
@ -86,7 +84,7 @@ func Test_expand_sfile_and_stack()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_expand_slnum()
|
func Test_expand_slnum()
|
||||||
call assert_equal(6, s:slnum)
|
call assert_equal(4, s:slnum)
|
||||||
call assert_equal(2, str2nr(expand('<slnum>')))
|
call assert_equal(2, str2nr(expand('<slnum>')))
|
||||||
|
|
||||||
" Line-continuation
|
" Line-continuation
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" Tests for expressions.
|
" Tests for expressions.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
import './vim9.vim' as v9
|
import './vim9.vim' as v9
|
||||||
|
|
||||||
func Test_equal()
|
func Test_equal()
|
||||||
|
@ -8,8 +8,6 @@
|
|||||||
" cksum is part of POSIX and so should be available on most Unixes.
|
" cksum is part of POSIX and so should be available on most Unixes.
|
||||||
" If it isn't available then the test will be skipped.
|
" If it isn't available then the test will be skipped.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
|
|
||||||
func Test_File_Size()
|
func Test_File_Size()
|
||||||
CheckExecutable cksum
|
CheckExecutable cksum
|
||||||
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
" Tests for when a file was changed outside of Vim.
|
" Tests for when a file was changed outside of Vim.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
|
|
||||||
func Test_FileChangedShell_reload()
|
func Test_FileChangedShell_reload()
|
||||||
CheckUnix
|
CheckUnix
|
||||||
|
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
" Test filecopy()
|
" Test filecopy()
|
||||||
|
|
||||||
source check.vim
|
|
||||||
source shared.vim
|
|
||||||
|
|
||||||
func Test_copy_file_to_file()
|
func Test_copy_file_to_file()
|
||||||
call writefile(['foo'], 'Xcopy1')
|
call writefile(['foo'], 'Xcopy1')
|
||||||
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
" Test for 'fileformat'
|
" Test for 'fileformat'
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
|
|
||||||
" Test behavior of fileformat after bwipeout of last buffer
|
" Test behavior of fileformat after bwipeout of last buffer
|
||||||
func Test_fileformat_after_bw()
|
func Test_fileformat_after_bw()
|
||||||
bwipeout
|
bwipeout
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
" Test the :filter command modifier
|
" Test the :filter command modifier
|
||||||
|
|
||||||
source check.vim
|
|
||||||
|
|
||||||
func Test_filter()
|
func Test_filter()
|
||||||
edit Xdoesnotmatch
|
edit Xdoesnotmatch
|
||||||
edit Xwillmatch
|
edit Xwillmatch
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" Test findfile() and finddir()
|
" Test findfile() and finddir()
|
||||||
|
|
||||||
source check.vim
|
|
||||||
import './vim9.vim' as v9
|
import './vim9.vim' as v9
|
||||||
|
|
||||||
let s:files = [ 'Xfinddir1/foo',
|
let s:files = [ 'Xfinddir1/foo',
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" test float functions
|
" test float functions
|
||||||
|
|
||||||
source check.vim
|
|
||||||
import './vim9.vim' as v9
|
import './vim9.vim' as v9
|
||||||
|
|
||||||
func Test_abs()
|
func Test_abs()
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
" Test for folding
|
" Test for folding
|
||||||
|
|
||||||
source check.vim
|
|
||||||
source view_util.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
|
|
||||||
func PrepIndent(arg)
|
func PrepIndent(arg)
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" Tests for expressions.
|
" Tests for expressions.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
import './vim9.vim' as v9
|
import './vim9.vim' as v9
|
||||||
|
|
||||||
func Test_printf_pos_misc()
|
func Test_printf_pos_misc()
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
" Tests for various functions.
|
" Tests for various functions.
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
source check.vim
|
|
||||||
source term_util.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
import './vim9.vim' as v9
|
import './vim9.vim' as v9
|
||||||
|
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
source check.vim
|
" Test for gettext()
|
||||||
|
|
||||||
CheckFeature gettext
|
CheckFeature gettext
|
||||||
|
|
||||||
" Test for gettext()
|
|
||||||
func Test_gettext()
|
func Test_gettext()
|
||||||
call assert_fails('call bindtextdomain("test")', 'E119:')
|
call assert_fails('call bindtextdomain("test")', 'E119:')
|
||||||
call assert_fails('call bindtextdomain("vim", "test")', 'E475:')
|
call assert_fails('call bindtextdomain("vim", "test")', 'E475:')
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
source check.vim
|
|
||||||
" This fail on CI MacOS 14 because bindtextdomain() is not available there
|
" This fail on CI MacOS 14 because bindtextdomain() is not available there
|
||||||
" (missing library?)
|
" (missing library?)
|
||||||
CheckNotMac
|
CheckNotMac
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
source check.vim
|
|
||||||
CheckNotMac
|
CheckNotMac
|
||||||
CheckFeature gettext
|
CheckFeature gettext
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
source check.vim
|
|
||||||
" This fail on CI MacOS 14 because bindtextdomain() is not available there
|
" This fail on CI MacOS 14 because bindtextdomain() is not available there
|
||||||
" (missing library?)
|
" (missing library?)
|
||||||
CheckNotMac
|
CheckNotMac
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
" Test for :global and :vglobal
|
" Test for :global and :vglobal
|
||||||
|
|
||||||
source check.vim
|
|
||||||
source term_util.vim
|
|
||||||
|
|
||||||
func Test_yank_put_clipboard()
|
func Test_yank_put_clipboard()
|
||||||
new
|
new
|
||||||
call setline(1, ['a', 'b', 'c'])
|
call setline(1, ['a', 'b', 'c'])
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
" Tests specifically for the GUI
|
" Tests specifically for the GUI
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
source check.vim
|
|
||||||
CheckCanRunGui
|
CheckCanRunGui
|
||||||
|
|
||||||
source setup_gui.vim
|
source setup_gui.vim
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
" Tests specifically for the GUI features/options that need to be set up at
|
" Tests specifically for the GUI features/options that need to be set up at
|
||||||
" startup to take effect at runtime.
|
" startup to take effect at runtime.
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
source check.vim
|
|
||||||
CheckCanRunGui
|
CheckCanRunGui
|
||||||
|
|
||||||
source setup_gui.vim
|
source setup_gui.vim
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
" Test :hardcopy
|
" Test :hardcopy
|
||||||
|
|
||||||
source check.vim
|
|
||||||
|
|
||||||
func Test_printoptions()
|
func Test_printoptions()
|
||||||
edit test_hardcopy.vim
|
edit test_hardcopy.vim
|
||||||
syn on
|
syn on
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" Tests for :help
|
" Tests for :help
|
||||||
|
|
||||||
source check.vim
|
|
||||||
import './vim9.vim' as v9
|
import './vim9.vim' as v9
|
||||||
|
|
||||||
func Test_help_restore_snapshot()
|
func Test_help_restore_snapshot()
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
" Tests for ":highlight" and highlighting.
|
" Tests for ":highlight" and highlighting.
|
||||||
|
|
||||||
source view_util.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
source check.vim
|
|
||||||
source script_util.vim
|
source script_util.vim
|
||||||
import './vim9.vim' as v9
|
import './vim9.vim' as v9
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" Tests for the history functions
|
" Tests for the history functions
|
||||||
|
|
||||||
source check.vim
|
|
||||||
CheckFeature cmdline_hist
|
CheckFeature cmdline_hist
|
||||||
|
|
||||||
set history=7
|
set history=7
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" Test for v:hlsearch
|
" Test for v:hlsearch
|
||||||
|
|
||||||
source check.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
|
|
||||||
func Test_hlsearch()
|
func Test_hlsearch()
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
" Test for 'iminsert'
|
" Test for 'iminsert'
|
||||||
|
|
||||||
source view_util.vim
|
|
||||||
source check.vim
|
|
||||||
import './vim9.vim' as v9
|
import './vim9.vim' as v9
|
||||||
|
|
||||||
let s:imactivatefunc_called = 0
|
let s:imactivatefunc_called = 0
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
" Test for various indent options
|
" Test for various indent options
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
source check.vim
|
|
||||||
|
|
||||||
func Test_preserveindent()
|
func Test_preserveindent()
|
||||||
new
|
new
|
||||||
" Test for autoindent copying indent from the previous line
|
" Test for autoindent copying indent from the previous line
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
" Test for insert completion
|
" Test for insert completion
|
||||||
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
source check.vim
|
|
||||||
import './vim9.vim' as v9
|
import './vim9.vim' as v9
|
||||||
|
|
||||||
" Test for insert expansion
|
" Test for insert expansion
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
" leaks under valgrind. That is because when fork/exec fails memory is not
|
" leaks under valgrind. That is because when fork/exec fails memory is not
|
||||||
" freed. Since the process exits right away it's not a real leak.
|
" freed. Since the process exits right away it's not a real leak.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
|
|
||||||
func Test_job_start_fails()
|
func Test_job_start_fails()
|
||||||
CheckFeature job
|
CheckFeature job
|
||||||
let job = job_start('axdfxsdf')
|
let job = job_start('axdfxsdf')
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" Test for lambda and closure
|
" Test for lambda and closure
|
||||||
|
|
||||||
source check.vim
|
|
||||||
import './vim9.vim' as v9
|
import './vim9.vim' as v9
|
||||||
|
|
||||||
func Test_lambda_feature()
|
func Test_lambda_feature()
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" tests for 'langmap'
|
" tests for 'langmap'
|
||||||
|
|
||||||
source check.vim
|
|
||||||
CheckFeature langmap
|
CheckFeature langmap
|
||||||
|
|
||||||
func Test_langmap()
|
func Test_langmap()
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
" Tests for 'listchars' display with 'list' and :list
|
" Tests for 'listchars' display with 'list' and :list
|
||||||
|
|
||||||
source check.vim
|
|
||||||
source view_util.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
|
|
||||||
func Check_listchars(expected, end_lnum, end_scol = -1, leftcol = 0)
|
func Check_listchars(expected, end_lnum, end_scol = -1, leftcol = 0)
|
||||||
|
@ -3,11 +3,9 @@
|
|||||||
set encoding=latin1
|
set encoding=latin1
|
||||||
scriptencoding latin1
|
scriptencoding latin1
|
||||||
|
|
||||||
source check.vim
|
|
||||||
CheckOption linebreak
|
CheckOption linebreak
|
||||||
CheckFeature conceal
|
CheckFeature conceal
|
||||||
|
|
||||||
source view_util.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
|
|
||||||
function s:screen_lines(lnum, width) abort
|
function s:screen_lines(lnum, width) abort
|
||||||
|
@ -3,12 +3,10 @@
|
|||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
scriptencoding utf-8
|
scriptencoding utf-8
|
||||||
|
|
||||||
source check.vim
|
|
||||||
CheckOption linebreak
|
CheckOption linebreak
|
||||||
CheckFeature conceal
|
CheckFeature conceal
|
||||||
CheckFeature signs
|
CheckFeature signs
|
||||||
|
|
||||||
source view_util.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
|
|
||||||
func s:screen_lines(lnum, width) abort
|
func s:screen_lines(lnum, width) abort
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
" Tests for Lua.
|
" Tests for Lua.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
|
|
||||||
" This test also works without the lua feature.
|
" This test also works without the lua feature.
|
||||||
func Test_skip_lua()
|
func Test_skip_lua()
|
||||||
if 0
|
if 0
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
" Tests for 'makeencoding'.
|
" Tests for 'makeencoding'.
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
source check.vim
|
|
||||||
|
|
||||||
CheckFeature quickfix
|
CheckFeature quickfix
|
||||||
let s:python = PythonProg()
|
let s:python = PythonProg()
|
||||||
if s:python == ''
|
if s:python == ''
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
" Tests for maparg(), mapcheck(), mapset(), maplist()
|
" Tests for maparg(), mapcheck(), mapset(), maplist()
|
||||||
" Also test utf8 map with a 0x80 byte.
|
" Also test utf8 map with a 0x80 byte.
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
|
|
||||||
func s:SID()
|
func s:SID()
|
||||||
return str2nr(matchstr(expand('<sfile>'), '<SNR>\zs\d\+\ze_SID$'))
|
return str2nr(matchstr(expand('<sfile>'), '<SNR>\zs\d\+\ze_SID$'))
|
||||||
endfunc
|
endfunc
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
" Tests for mappings and abbreviations
|
" Tests for mappings and abbreviations
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
source check.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
source term_util.vim
|
|
||||||
import './vim9.vim' as v9
|
import './vim9.vim' as v9
|
||||||
|
|
||||||
func Test_abbreviation()
|
func Test_abbreviation()
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
" matchaddpos(), matcharg(), matchdelete(), and setmatches().
|
" matchaddpos(), matcharg(), matchdelete(), and setmatches().
|
||||||
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
source check.vim
|
|
||||||
|
|
||||||
function Test_match()
|
function Test_match()
|
||||||
highlight MyGroup1 term=bold ctermbg=red guibg=red
|
highlight MyGroup1 term=bold ctermbg=red guibg=red
|
||||||
|
@ -1,16 +1,11 @@
|
|||||||
" Test for matchadd() and conceal feature
|
" Test for matchadd() and conceal feature
|
||||||
|
|
||||||
source check.vim
|
|
||||||
CheckFeature conceal
|
CheckFeature conceal
|
||||||
|
|
||||||
if !has('gui_running') && has('unix')
|
if !has('gui_running') && has('unix')
|
||||||
set term=ansi
|
set term=ansi
|
||||||
endif
|
endif
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
source term_util.vim
|
|
||||||
source view_util.vim
|
|
||||||
|
|
||||||
func Test_simple_matchadd()
|
func Test_simple_matchadd()
|
||||||
new
|
new
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" Test for matchadd() and conceal feature using utf-8.
|
" Test for matchadd() and conceal feature using utf-8.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
CheckFeature conceal
|
CheckFeature conceal
|
||||||
|
|
||||||
if !has('gui_running') && has('unix')
|
if !has('gui_running') && has('unix')
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
" Tests for fuzzy matching
|
" Tests for fuzzy matching
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
source check.vim
|
|
||||||
source term_util.vim
|
|
||||||
|
|
||||||
" Test for matchfuzzy()
|
" Test for matchfuzzy()
|
||||||
func Test_matchfuzzy()
|
func Test_matchfuzzy()
|
||||||
call assert_fails('call matchfuzzy(10, "abc")', 'E686:')
|
call assert_fails('call matchfuzzy(10, "abc")', 'E686:')
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" Tests for memory usage.
|
" Tests for memory usage.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
CheckFeature terminal
|
CheckFeature terminal
|
||||||
CheckNotGui
|
CheckNotGui
|
||||||
|
|
||||||
@ -8,8 +7,6 @@ CheckNotGui
|
|||||||
" usage.
|
" usage.
|
||||||
CheckNotAsan
|
CheckNotAsan
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
|
|
||||||
func s:pick_nr(str) abort
|
func s:pick_nr(str) abort
|
||||||
return substitute(a:str, '[^0-9]', '', 'g') * 1
|
return substitute(a:str, '[^0-9]', '', 'g') * 1
|
||||||
endfunc
|
endfunc
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" Test that the system menu can be loaded.
|
" Test that the system menu can be loaded.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
CheckFeature menu
|
CheckFeature menu
|
||||||
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
" Tests for :messages, :echomsg, :echoerr
|
" Tests for :messages, :echomsg, :echoerr
|
||||||
|
|
||||||
source check.vim
|
|
||||||
source shared.vim
|
|
||||||
source term_util.vim
|
|
||||||
source view_util.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
|
|
||||||
func Test_messages()
|
func Test_messages()
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
" Tests for ->method()
|
" Tests for ->method()
|
||||||
|
|
||||||
source check.vim
|
|
||||||
|
|
||||||
func Test_list_method()
|
func Test_list_method()
|
||||||
let l = [1, 2, 3]
|
let l = [1, 2, 3]
|
||||||
call assert_equal([1, 2, 3, 4], [1, 2, 3]->add(4))
|
call assert_equal([1, 2, 3, 4], [1, 2, 3]->add(4))
|
||||||
|
@ -3,12 +3,8 @@
|
|||||||
set encoding=latin1
|
set encoding=latin1
|
||||||
scriptencoding latin1
|
scriptencoding latin1
|
||||||
|
|
||||||
source check.vim
|
|
||||||
CheckFeature mksession
|
CheckFeature mksession
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
source term_util.vim
|
|
||||||
|
|
||||||
" Test for storing global and local argument list in a session file
|
" Test for storing global and local argument list in a session file
|
||||||
" This one must be done first.
|
" This one must be done first.
|
||||||
func Test__mksession_arglocal()
|
func Test__mksession_arglocal()
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
scriptencoding utf-8
|
scriptencoding utf-8
|
||||||
|
|
||||||
source check.vim
|
|
||||||
CheckFeature mksession
|
CheckFeature mksession
|
||||||
|
|
||||||
func Test_mksession_utf8()
|
func Test_mksession_utf8()
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
" Test for modeless selection
|
" Test for modeless selection
|
||||||
|
|
||||||
" This only works for Unix in a terminal
|
" This only works for Unix in a terminal
|
||||||
source check.vim
|
|
||||||
CheckNotGui
|
CheckNotGui
|
||||||
CheckUnix
|
CheckUnix
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
source mouse.vim
|
source mouse.vim
|
||||||
|
|
||||||
" Test for modeless characterwise selection (single click)
|
" Test for modeless characterwise selection (single click)
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
" Tests for parsing the modeline.
|
" Tests for parsing the modeline.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
|
|
||||||
func Test_modeline_invalid()
|
func Test_modeline_invalid()
|
||||||
" This was reading allocated memory in the past.
|
" This was reading allocated memory in the past.
|
||||||
call writefile(['vi:0', 'nothing'], 'Xmodeline', 'D')
|
call writefile(['vi:0', 'nothing'], 'Xmodeline', 'D')
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" Test the ":move" command.
|
" Test the ":move" command.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
source screendump.vim
|
source screendump.vim
|
||||||
|
|
||||||
func Test_move()
|
func Test_move()
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
" Test MS-Windows input event handling.
|
" Test MS-Windows input event handling.
|
||||||
" Most of this works the same in Windows GUI as well as Windows console.
|
" Most of this works the same in Windows GUI as well as Windows console.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
CheckMSWindows
|
CheckMSWindows
|
||||||
source mouse.vim
|
source mouse.vim
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" Test for MzScheme interface and mzeval() function
|
" Test for MzScheme interface and mzeval() function
|
||||||
|
|
||||||
source check.vim
|
|
||||||
CheckFeature mzscheme
|
CheckFeature mzscheme
|
||||||
|
|
||||||
func MzRequire()
|
func MzRequire()
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
" Tests for nested functions
|
" Tests for nested functions
|
||||||
|
|
||||||
source check.vim
|
|
||||||
|
|
||||||
func NestedFunc()
|
func NestedFunc()
|
||||||
func! Func1()
|
func! Func1()
|
||||||
let g:text .= 'Func1 '
|
let g:text .= 'Func1 '
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
" Test the netbeans interface.
|
" Test the netbeans interface.
|
||||||
|
|
||||||
source check.vim
|
|
||||||
CheckFeature netbeans_intg
|
CheckFeature netbeans_intg
|
||||||
|
|
||||||
source shared.vim
|
|
||||||
|
|
||||||
let s:python = PythonProg()
|
let s:python = PythonProg()
|
||||||
if s:python == ''
|
if s:python == ''
|
||||||
throw 'Skipped: python program missing'
|
throw 'Skipped: python program missing'
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user