]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1524: tests: too many imports in the test suite v9.1.1524
authorChristian Brabandt <cb@256bit.org>
Mon, 7 Jul 2025 18:39:29 +0000 (20:39 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 7 Jul 2025 18:39:29 +0000 (20:39 +0200)
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>
219 files changed:
src/testdir/check.vim
src/testdir/runtest.vim
src/testdir/screendump.vim
src/testdir/test_arabic.vim
src/testdir/test_arglist.vim
src/testdir/test_assert.vim
src/testdir/test_autochdir.vim
src/testdir/test_autocmd.vim
src/testdir/test_backup.vim
src/testdir/test_balloon.vim
src/testdir/test_balloon_gui.vim
src/testdir/test_bench_regexp.vim
src/testdir/test_breakindent.vim
src/testdir/test_buffer.vim
src/testdir/test_bufline.vim
src/testdir/test_bufwintabinfo.vim
src/testdir/test_cd.vim
src/testdir/test_cdo.vim
src/testdir/test_channel.vim
src/testdir/test_clientserver.vim
src/testdir/test_clipmethod.vim
src/testdir/test_cmdline.vim
src/testdir/test_cmdwin.vim
src/testdir/test_compiler.vim
src/testdir/test_conceal.vim
src/testdir/test_cpoptions.vim
src/testdir/test_crash.vim
src/testdir/test_crypt.vim
src/testdir/test_cscope.vim
src/testdir/test_cursor_func.vim
src/testdir/test_cursorline.vim
src/testdir/test_curswant.vim
src/testdir/test_debugger.vim
src/testdir/test_delete.vim
src/testdir/test_diffmode.vim
src/testdir/test_digraph.vim
src/testdir/test_display.vim
src/testdir/test_edit.vim
src/testdir/test_environ.vim
src/testdir/test_escaped_glob.vim
src/testdir/test_eval_stuff.vim
src/testdir/test_ex_mode.vim
src/testdir/test_excmd.vim
src/testdir/test_execute_func.vim
src/testdir/test_exit.vim
src/testdir/test_expand.vim
src/testdir/test_expand_func.vim
src/testdir/test_expr.vim
src/testdir/test_file_size.vim
src/testdir/test_filechanged.vim
src/testdir/test_filecopy.vim
src/testdir/test_fileformat.vim
src/testdir/test_filter_cmd.vim
src/testdir/test_findfile.vim
src/testdir/test_float_func.vim
src/testdir/test_fold.vim
src/testdir/test_format.vim
src/testdir/test_functions.vim
src/testdir/test_gettext.vim
src/testdir/test_gettext_cp1251.vim
src/testdir/test_gettext_make.vim
src/testdir/test_gettext_utf8.vim
src/testdir/test_global.vim
src/testdir/test_gui.vim
src/testdir/test_gui_init.vim
src/testdir/test_hardcopy.vim
src/testdir/test_help.vim
src/testdir/test_highlight.vim
src/testdir/test_history.vim
src/testdir/test_hlsearch.vim
src/testdir/test_iminsert.vim
src/testdir/test_indent.vim
src/testdir/test_ins_complete.vim
src/testdir/test_job_fails.vim
src/testdir/test_lambda.vim
src/testdir/test_langmap.vim
src/testdir/test_listchars.vim
src/testdir/test_listlbr.vim
src/testdir/test_listlbr_utf8.vim
src/testdir/test_lua.vim
src/testdir/test_makeencoding.vim
src/testdir/test_map_functions.vim
src/testdir/test_mapping.vim
src/testdir/test_match.vim
src/testdir/test_matchadd_conceal.vim
src/testdir/test_matchadd_conceal_utf8.vim
src/testdir/test_matchfuzzy.vim
src/testdir/test_memory_usage.vim
src/testdir/test_menu.vim
src/testdir/test_messages.vim
src/testdir/test_method.vim
src/testdir/test_mksession.vim
src/testdir/test_mksession_utf8.vim
src/testdir/test_modeless.vim
src/testdir/test_modeline.vim
src/testdir/test_move.vim
src/testdir/test_mswin_event.vim
src/testdir/test_mzscheme.vim
src/testdir/test_nested_function.vim
src/testdir/test_netbeans.vim
src/testdir/test_normal.vim
src/testdir/test_number.vim
src/testdir/test_options.vim
src/testdir/test_packadd.vim
src/testdir/test_partial.vim
src/testdir/test_paste.vim
src/testdir/test_perl.vim
src/testdir/test_plugin_comment.vim
src/testdir/test_plugin_matchparen.vim
src/testdir/test_plugin_termdebug.vim
src/testdir/test_plugin_tohtml.vim
src/testdir/test_plugin_tutor.vim
src/testdir/test_plugin_zip.vim
src/testdir/test_popup.vim
src/testdir/test_popupwin.vim
src/testdir/test_popupwin_textprop.vim
src/testdir/test_preview.vim
src/testdir/test_profile.vim
src/testdir/test_prompt_buffer.vim
src/testdir/test_put.vim
src/testdir/test_python2.vim
src/testdir/test_python3.vim
src/testdir/test_pyx2.vim
src/testdir/test_pyx3.vim
src/testdir/test_quickfix.vim
src/testdir/test_quotestar.vim
src/testdir/test_random.vim
src/testdir/test_recover.vim
src/testdir/test_regex_char_classes.vim
src/testdir/test_regexp_latin.vim
src/testdir/test_regexp_utf8.vim
src/testdir/test_registers.vim
src/testdir/test_reltime.vim
src/testdir/test_remote.vim
src/testdir/test_rename.vim
src/testdir/test_restricted.vim
src/testdir/test_retab.vim
src/testdir/test_ruby.vim
src/testdir/test_scroll_opt.vim
src/testdir/test_search.vim
src/testdir/test_search_stat.vim
src/testdir/test_selectmode.vim
src/testdir/test_set.vim
src/testdir/test_sha256.vim
src/testdir/test_shell.vim
src/testdir/test_shift.vim
src/testdir/test_shortpathname.vim
src/testdir/test_signals.vim
src/testdir/test_signs.vim
src/testdir/test_sort.vim
src/testdir/test_sound.vim
src/testdir/test_source.vim
src/testdir/test_source_utf8.vim
src/testdir/test_spell.vim
src/testdir/test_spell_utf8.vim
src/testdir/test_spellfile.vim
src/testdir/test_spellrare.vim
src/testdir/test_startup.vim
src/testdir/test_startup_utf8.vim
src/testdir/test_stat.vim
src/testdir/test_statusline.vim
src/testdir/test_substitute.vim
src/testdir/test_suspend.vim
src/testdir/test_swap.vim
src/testdir/test_syntax.vim
src/testdir/test_system.vim
src/testdir/test_tabline.vim
src/testdir/test_tabpage.vim
src/testdir/test_tabpanel.vim
src/testdir/test_tagfunc.vim
src/testdir/test_tagjump.vim
src/testdir/test_taglist.vim
src/testdir/test_tcl.vim
src/testdir/test_termcodes.vim
src/testdir/test_termencoding.vim
src/testdir/test_terminal.vim
src/testdir/test_terminal2.vim
src/testdir/test_terminal3.vim
src/testdir/test_terminal_fail.vim
src/testdir/test_textformat.vim
src/testdir/test_textobjects.vim
src/testdir/test_textprop.vim
src/testdir/test_timers.vim
src/testdir/test_true_false.vim
src/testdir/test_trycatch.vim
src/testdir/test_undo.vim
src/testdir/test_uniq.vim
src/testdir/test_user_func.vim
src/testdir/test_usercommands.vim
src/testdir/test_utf8.vim
src/testdir/test_vartabs.vim
src/testdir/test_version.vim
src/testdir/test_vim9_assign.vim
src/testdir/test_vim9_builtin.vim
src/testdir/test_vim9_class.vim
src/testdir/test_vim9_cmd.vim
src/testdir/test_vim9_disassemble.vim
src/testdir/test_vim9_enum.vim
src/testdir/test_vim9_expr.vim
src/testdir/test_vim9_fails.vim
src/testdir/test_vim9_func.vim
src/testdir/test_vim9_import.vim
src/testdir/test_vim9_python3.vim
src/testdir/test_vim9_script.vim
src/testdir/test_vim9_typealias.vim
src/testdir/test_viminfo.vim
src/testdir/test_vimscript.vim
src/testdir/test_visual.vim
src/testdir/test_wayland.vim
src/testdir/test_winbar.vim
src/testdir/test_window_cmd.vim
src/testdir/test_window_id.vim
src/testdir/test_windows_home.vim
src/testdir/test_winfixbuf.vim
src/testdir/test_writefile.vim
src/testdir/test_xdg.vim
src/testdir/test_xxd.vim
src/testdir/window_manager.vim
src/version.c

index 76f6692aea1b1a434d966a836b76f0ca45cc1c9e..fd160b0aa6ead8e9063fbb7ed6940ae39521b0a0 100644 (file)
@@ -1,6 +1,10 @@
 source shared.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 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"
   endif
 endfunc
+
+let &cpo = s:cpo_save
+unlet s:cpo_save
 " vim: shiftwidth=2 sts=2 expandtab
index 5028a85f677bafdf6a24d5246931acfc0227aea5..a56679c829fc3e213536af1bfc8174ba88a0ed81 100644 (file)
@@ -106,6 +106,9 @@ source setup.vim
 " Needed for RunningWithValgrind().
 source shared.vim
 
+" Needed for the various Check commands
+source check.vim
+
 " For consistency run all tests with 'nocompatible' set.
 " This also enables use of line continuation.
 set nocp viminfo+=nviminfo
index d7207d41a1e882ff086c00191338218a5d2545e2..be6af861aaba796326bd9a4eaf3e45ada476a5fb 100644 (file)
@@ -5,9 +5,6 @@ if exists('*VerifyScreenDump')
   finish
 endif
 
-source shared.vim
-source term_util.vim
-
 " Skip the rest if there is no terminal feature at all.
 if !has('terminal')
   finish
index d2f28d8183e16d039ee4ca81ed4563c338d30351..8758e9888671f8e006b9f9837badeaef85c1e0d5 100644 (file)
@@ -2,11 +2,8 @@
 " NOTE: This just checks if the code works. If you know Arabic please add
 " functional tests that check the shaping works with real text.
 
-source check.vim
 CheckFeature arabic
 
-source view_util.vim
-
 " Return list of Unicode characters at line lnum.
 " Combining characters are treated as a single item.
 func s:get_chars(lnum)
index c320d096f58714b936c76baba924e18881dc977b..2a76ca6515bd062b1b725b4e9299eba60edfc0a5 100644 (file)
@@ -1,9 +1,5 @@
 " Test argument list commands
 
-source check.vim
-source shared.vim
-source term_util.vim
-
 func Reset_arglist()
   args a | %argd
 endfunc
index 15b18a4423e547dd1d40a6e2b6f5b1c8f00b3307..ad4e751c4b2e9fa52babdef6f4bf1190f24f7885 100644 (file)
@@ -1,8 +1,5 @@
 " Test that the methods used for testing work.
 
-source check.vim
-source term_util.vim
-
 func Test_assert_false()
   call assert_equal(0, assert_false(0))
   call assert_equal(0, assert_false(v:false))
index eb402539ffb265847783aaa8cf4a4361d6cd369f..a9cb66b2cea8113b88cb1470ff3fb2da3a225b63 100644 (file)
@@ -1,6 +1,5 @@
 " Test 'autochdir' behavior
 
-source check.vim
 CheckOption autochdir
 
 func Test_set_filename()
index 4d001c2169c4890efeb5244235dc23f633f07bb8..c78088d0cff16b8f852e0f19715520a472d93830 100644 (file)
@@ -1,8 +1,5 @@
 " Tests for autocommands
 
-source shared.vim
-source check.vim
-source term_util.vim
 source screendump.vim
 import './vim9.vim' as v9
 
index 68f298559f1c75a89aa513cd5d09dc4ef9eca93e..3c24a69bff0bc0a2b6630bd8ae6e2c7498639112 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for the backup function
 
-source check.vim
-
 func Test_backup()
   set backup backupdir=. backupskip=
   new
index 1a9e2258d75cd440ec9dba8be1e97ae996c62d2f..6f89f2fa968031669003c3300669df927ca6e783 100644 (file)
@@ -1,7 +1,6 @@
 " Tests for 'balloonevalterm'.
 " A few tests only work in the terminal.
 
-source check.vim
 CheckNotGui
 CheckFeature balloon_eval_term
 
index d01114c1c6f4add2554616ed17634777f1ce199c..904387752015de937fe5709c8dbefc676206b962 100644 (file)
@@ -1,6 +1,5 @@
 " Tests for 'ballooneval' in the GUI.
 
-source check.vim
 CheckGui
 CheckFeature balloon_eval
 
index eb9f5f8e5a4b5c0d75b23cec6119869ce00f4722..636d832a27b762bb3b440bcd5eb75bf3cf7b7657 100644 (file)
@@ -1,6 +1,5 @@
 " Test for benchmarking the RE engine
 
-source check.vim
 CheckFeature reltime
 
 func Measure(file, pattern, arg)
index 16a11b35af332a6fa25cf6127613f94ef45163f5..e081307abc2153e0c71c36bb92e70851fc8f588b 100644 (file)
@@ -4,10 +4,8 @@
 " 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
 " Test_breakindent08())
-source check.vim
 CheckOption breakindent
 
-source view_util.vim
 source screendump.vim
 
 func SetUp()
index 36a6ef50350c862c0ac6860bfec524bc5486c81e..d6d668799f212196616280752a28e52cf27279f5 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for Vim buffer
 
-source check.vim
-
 " Test for the :bunload command with an offset
 func Test_bunload_with_offset()
   %bwipe!
index 4ada241d1dbc8ec691fa8b31f12758626c89189e..1aa0c017c0b9537a97c539dee0924a7d2f462689 100644 (file)
@@ -1,8 +1,6 @@
 " Tests for setbufline(), getbufline(), appendbufline(), deletebufline()
 
-source shared.vim
 source screendump.vim
-source check.vim
 
 func Test_setbufline_getbufline()
   " similar to Test_set_get_bufline()
index 1517a9b730548cd32a30c53da9c3ccdafedb76b4..f7318ff55ab8d41c21709688bb8054372ac81529 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for the getbufinfo(), getwininfo() and gettabinfo() functions
 
-source check.vim
-
 func Test_getbufwintabinfo()
   CheckFeature quickfix
 
index 85494d386aeab6fc4513a434e8c85f53b7aff872..878a2aeb5f51d85907311a5aab8bc55d39bfe1c0 100644 (file)
@@ -1,8 +1,5 @@
 " Test for :cd and chdir()
 
-source shared.vim
-source check.vim
-
 func Test_cd_large_path()
   " This used to crash with a heap write overflow.
   call assert_fails('cd ' . repeat('x', 5000), 'E344:')
index dbed7df4ac9f84a48d9d7d6418f7553df13de259..9cf435a975a30ba59f4a7908420037e718fdb632 100644 (file)
@@ -1,6 +1,5 @@
 " Tests for the :cdo, :cfdo, :ldo and :lfdo commands
 
-source check.vim
 CheckFeature quickfix
 
 " Create the files used by the tests
index 2d40eff12f02749b692a5aa6d0728fd16a959750..6a0ee54109a17b3e72d5294c4d6291f605d601bb 100644 (file)
@@ -1,12 +1,9 @@
 " Test for channel and job functions.
 
 " When +channel is supported then +job is too, so we don't check for that.
-source check.vim
 CheckFeature channel
 
-source shared.vim
 source screendump.vim
-source view_util.vim
 
 let s:python = PythonProg()
 if s:python == ''
index 02b0c3921fe9c08f271a156ecbc1421432a2ad44..3d69eed7594ae14e6ad5ec39c4641d2152b78dd8 100644 (file)
@@ -1,6 +1,5 @@
 " Tests for the +clientserver feature.
 
-source check.vim
 CheckFeature job
 
 if !has('clientserver')
index 591b3a2fc6a903087c89bc1e88b826934410659c..31a381c14e17544dc394788fb8c94e4e29cd2253 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for clipmethod
 
-source check.vim
-source shared.vim
 source window_manager.vim
 
 CheckFeature clipboard_working
index 6aedf3ec29f4e713527514c915371a7a3a22feed..cfc64f79d2e5e039669ee5b8ac5c9a062581c57c 100644 (file)
@@ -1,9 +1,6 @@
 " Tests for editing the command line.
 
-source check.vim
 source screendump.vim
-source view_util.vim
-source shared.vim
 import './vim9.vim' as v9
 
 func SetUp()
index 33a2662629028f8c2a993f3969be1488cfe60b4e..9c37f2052c01d6f0cc2c1ad734acd8d6e5d2c811 100644 (file)
@@ -1,6 +1,5 @@
 " Tests for editing the command line.
 
-source check.vim
 source screendump.vim
 
 func Test_getcmdwintype()
index d86c55f1c7dfc986485f92f22cae8a7094d40eed..d28349a70ca2dcd8138d71ed8b053833ec881e9f 100644 (file)
@@ -1,8 +1,5 @@
 " Test the :compiler command
 
-source check.vim
-source shared.vim
-
 func Test_compiler()
   CheckExecutable perl
   CheckFeature quickfix
index bac3ed102674c0b92609da23d526df73cfbbd3a2..ac27dba579ff2c7627091ece3c1ffd5afd910e93 100644 (file)
@@ -1,10 +1,8 @@
 " Tests for 'conceal'.
 
-source check.vim
 CheckFeature conceal
 
 source screendump.vim
-source view_util.vim
 
 func Test_conceal_two_windows()
   CheckScreendump
index 7bfbcd12a1e6b8cf8b6b942e468e64da5cae6328..2afe3e885ece8ab9673944c0c36bf97c2e7954af 100644 (file)
@@ -1,9 +1,5 @@
 " 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
 " file name.
 func Test_cpo_a()
index 80c1ccf0cfc0e5c72764ba92d54747220f068c0f..f497d9ed464742ecb5e6ae7df186fba2aae87e3b 100644 (file)
@@ -1,5 +1,4 @@
 " Some tests, that used to crash Vim
-source check.vim
 source screendump.vim
 
 CheckScreendump
index f056e38f8bc7228a6c893cfaa33c6472a4974e83..4a96c3070201998d20bceaddc4ffe9b9aab24739 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for encryption.
 
-source shared.vim
-source check.vim
 CheckFeature cryptv
 
 " Use the xxd command from:
index b2ecdcc914863df52454e2d871c2b6f60298619f..ddd4de0b89c8c129834046a878a2ca8984b6b85d 100644 (file)
@@ -1,6 +1,5 @@
 " Test for cscope commands.
 
-source check.vim
 CheckFeature cscope
 CheckFeature quickfix
 CheckExecutable cscope
index 1fd6b5fc4c6f39f2c6eb6cc1408d4386f7030030..73169649df3afe0fcf4e592dfd3e4658cbb30eed 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for cursor() and other functions that get/set the cursor position
 
-source check.vim
-
 func Test_wrong_arguments()
   call assert_fails('call cursor(1. 3)', 'E474:')
   call assert_fails('call cursor(test_null_list())', 'E474:')
index d258111ae4de11a46366f5269dc97736049d41e3..a497d0e39391c29c2dec9671a9498c3f6ee99321 100644 (file)
@@ -1,6 +1,5 @@
 " Test for cursorline and cursorlineopt
 
-source check.vim
 source screendump.vim
 
 func s:screen_attr(lnum) abort
index c67cca5f7d0819f5321f00b97db054eee7143807..d4f86a145b1f4f1c076d4e62cc82162f771f9d91 100644 (file)
@@ -1,8 +1,5 @@
 " Tests for not changing curswant
 
-source check.vim
-source term_util.vim
-
 func Test_curswant()
   new
   call append(0, ['1234567890', '12345'])
index 2fd68551f9e345a47c07a085988c3d968847ed91..be881b5b25479df914b080817fc7710fe96a98a0 100644 (file)
@@ -1,8 +1,6 @@
 " Tests for the Vim script debug commands
 
-source shared.vim
 source screendump.vim
-source check.vim
 
 CheckRunVimInTerminal
 
index 6323f9abbe5b8e245f5bdf6250d9cddc18373458..59d569f31654e9d1910ffe28125a49f2f59d8e62 100644 (file)
@@ -1,7 +1,5 @@
 " Test for delete().
 
-source check.vim
-source term_util.vim
 source screendump.vim
 
 func Test_file_delete()
index a348d3a40f93455f0aa485dbeedc9f6ccc319c0b..5c3873835d1362161ac456808e4602d216a64474 100644 (file)
@@ -1,9 +1,6 @@
 " Tests for diff mode
 
-source shared.vim
 source screendump.vim
-source check.vim
-source view_util.vim
 
 func Test_diff_fold_sync()
   enew!
index 29fa3001826790fd207d906a5923035c1b20a483..c53b1bcc014f134f71431a772821052dbc917275 100644 (file)
@@ -1,8 +1,6 @@
 " Tests for digraphs
 
-source check.vim
 CheckFeature digraphs
-source term_util.vim
 
 func Put_Dig(chars)
   exe "norm! o\<c-k>".a:chars
index 8f3806bd6e361bf8e65684c0548f68f7a9a1710d..be6ca7b0ffb27598b727e42f0c1d306b9c36fd6d 100644 (file)
@@ -4,8 +4,6 @@ if !has('gui_running') && has('unix')
   set term=ansi
 endif
 
-source view_util.vim
-source check.vim
 source screendump.vim
 
 func Test_display_foldcolumn()
index bde2cb0c8f5ecfb164f41acf453a80bde131cafb..f8ef1d8c5b85cf95648ce528595af2165e45c27c 100644 (file)
@@ -4,9 +4,7 @@ if exists("+t_kD")
   let &t_kD="\e[3;*~"
 endif
 
-source check.vim
 source screendump.vim
-source view_util.vim
 
 " Needs to come first until the bug in getchar() is
 " fixed: https://groups.google.com/d/msg/vim_dev/fXL9yme4H4c/bOR-U6_bAQAJ
index b5dbdce10441eb0695f4cf8f4d1b772a37cd01df..05d4f1f07c562831af039a9aa1339bade6239c1f 100644 (file)
@@ -2,8 +2,6 @@
 
 scriptencoding utf-8
 
-source check.vim
-
 func Test_environ()
   unlet! $TESTENV
   call assert_equal(0, has_key(environ(), 'TESTENV'))
index f81961bede4c779a55774fe866656cb9b8ce6dd9..5da2a790d8b796035fcf9a660711dd51b63474e9 100644 (file)
@@ -1,8 +1,6 @@
 " Test whether glob()/globpath() return correct results with certain escaped
 " characters.
 
-source check.vim
-
 func SetUp()
   " consistent sorting of file names
   set nofileignorecase
index d2f949ed57b18dfd31c101d07edcfcf0dea20d59..ada46672340f6aa82ebbdf14a20f5a1563ff9a16 100644 (file)
@@ -1,6 +1,5 @@
 " Tests for various eval things.
 
-source view_util.vim
 source shared.vim
 import './vim9.vim' as v9
 
index 19d0bece60cbc112cc9f4810c046e441f6ae6bfd..46dafebfa977089348617d06eb68acbf8b70b19b 100644 (file)
@@ -1,8 +1,5 @@
 " 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
 func Ex_Q(cmd)
   " Is there a simpler way to test editing Ex line?
index 3b7e489f38f03d1f2de83a92f92f127cf65c6833..66ef50177f4fcbeac0b0c42f7f2d8ac4f2c97544 100644 (file)
@@ -1,8 +1,5 @@
 " Tests for various Ex commands.
 
-source check.vim
-source shared.vim
-source term_util.vim
 source screendump.vim
 
 func Test_ex_delete()
index faaace09a02cf8c8cbe7f0f62f042357e57cdf50..e1c85b097b4a043be2b42ecdc2d875a91eb636c8 100644 (file)
@@ -1,9 +1,6 @@
 " test execute()
 
-source view_util.vim
-source check.vim
 import './vim9.vim' as v9
-source term_util.vim
 
 func NestedEval()
   let nested = execute('echo "nested\nlines"')
index b0446ba22bd88153649811540befe0ae21f0ca4e..3e0919a02e8c3831e7b6b3a9e437bf84f75533dc 100644 (file)
@@ -1,8 +1,5 @@
 " Tests for exiting Vim.
 
-source shared.vim
-source check.vim
-
 func Test_exiting()
   let after =<< trim [CODE]
     au QuitPre * call writefile(["QuitPre"], "Xtestout")
index bebe13868faf32280cb70b446bc40c1dcf54a3b7..84f1c7d110d0a1f5c34efa645548a2c5ae1f28db 100644 (file)
@@ -1,8 +1,5 @@
 " Test for expanding file names
 
-source shared.vim
-source check.vim
-
 func Test_with_directories()
   call mkdir('Xdir1')
   call mkdir('Xdir2')
index 15700480c4de70ef2fbeed2e016b412de074c289..a2611e7329897a5813430efbd1c6ffd8fba2d381 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for expand()
 
-source shared.vim
-
 let s:sfile = expand('<sfile>')
 let s:slnum = str2nr(expand('<slnum>'))
 let s:sflnum = str2nr(expand('<sflnum>'))
@@ -20,20 +18,20 @@ endfunc
 
 " This test depends on the location in the test file, put it first.
 func Test_expand_sflnum()
-  call assert_equal(7, s:sflnum)
-  call assert_equal(24, str2nr(expand('<sflnum>')))
+  call assert_equal(5, s:sflnum)
+  call assert_equal(22, str2nr(expand('<sflnum>')))
 
   " Line-continuation
   call assert_equal(
-        \ 27,
+        \ 25,
         \ str2nr(expand('<sflnum>')))
 
   " Call in script-local function
-  call assert_equal(18, s:expand_sflnum())
+  call assert_equal(16, s:expand_sflnum())
 
   " Call in command
   command Flnum echo expand('<sflnum>')
-  call assert_equal(36, str2nr(trim(execute('Flnum'))))
+  call assert_equal(34, str2nr(trim(execute('Flnum'))))
   delcommand Flnum
 endfunc
 
@@ -86,7 +84,7 @@ func Test_expand_sfile_and_stack()
 endfunc
 
 func Test_expand_slnum()
-  call assert_equal(6, s:slnum)
+  call assert_equal(4, s:slnum)
   call assert_equal(2, str2nr(expand('<slnum>')))
 
   " Line-continuation
index 8bba1f00e2a6c71538b2b43e92bd2057840fdbc7..e08019a2ec68183e56a7d55081eb340baccca1e4 100644 (file)
@@ -1,6 +1,5 @@
 " Tests for expressions.
 
-source check.vim
 import './vim9.vim' as v9
 
 func Test_equal()
index d349bc2e983bd8cb66cc3cd0ec2ad58dd476a0cd..ae15d1a94c76502857a584918068cb2286e260b8 100644 (file)
@@ -8,8 +8,6 @@
 " cksum is part of POSIX and so should be available on most Unixes.
 " If it isn't available then the test will be skipped.
 
-source check.vim
-
 func Test_File_Size()
   CheckExecutable cksum
 
index 12ac4ccde4c7e13ebda4c4e388c4ee6f5a30cfc2..da517515ae3502add383a01abc8b0c8755e5eeee 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for when a file was changed outside of Vim.
 
-source check.vim
-
 func Test_FileChangedShell_reload()
   CheckUnix
 
index b526dce7b82604fb03fbc1969efd83eb02233838..956f3d718072e8908ea411a1e2e34cf8a5596b6b 100644 (file)
@@ -1,8 +1,5 @@
 " Test filecopy()
 
-source check.vim
-source shared.vim
-
 func Test_copy_file_to_file()
   call writefile(['foo'], 'Xcopy1')
 
index 7d919c24a9d475e6efcf42752ac6f68eaae35398..a5687f9fbfe6435ee54f7f14d39ebefbd7053c65 100644 (file)
@@ -1,7 +1,5 @@
 " Test for 'fileformat'
 
-source shared.vim
-
 " Test behavior of fileformat after bwipeout of last buffer
 func Test_fileformat_after_bw()
   bwipeout
index 7c84a1384f7aef28dc0e47ccbf371bb8e9601183..4edcb6636ad8841d2ba5e525bcad443134897bbb 100644 (file)
@@ -1,7 +1,5 @@
 " Test the :filter command modifier
 
-source check.vim
-
 func Test_filter()
   edit Xdoesnotmatch
   edit Xwillmatch
index a7c3dc26de7777e8234f0966cfe844e929d5465c..ec380cbb4f9bc34279c2c7f9f2d01d9f638aac0f 100644 (file)
@@ -1,6 +1,5 @@
 " Test findfile() and finddir()
 
-source check.vim
 import './vim9.vim' as v9
 
 let s:files = [ 'Xfinddir1/foo',
index acc2e11e0ad78a3c771f7b8b33813ab648772b37..23e3c314c39cc240719ecf2c5d2c7160410bdb0c 100644 (file)
@@ -1,6 +1,5 @@
 " test float functions
 
-source check.vim
 import './vim9.vim' as v9
 
 func Test_abs()
index 17487a561e79ca9a9291262257ad6f3afd6d2fc7..0fc99bc55a759fe6d7cf8a64bb75dedbc4c00b79 100644 (file)
@@ -1,7 +1,5 @@
 " Test for folding
 
-source check.vim
-source view_util.vim
 source screendump.vim
 
 func PrepIndent(arg)
index c2612889319807f54eac2c9fb66523716a4d62e3..b6be20401d30c6e12054d1697a6065453acbe2d7 100644 (file)
@@ -1,6 +1,5 @@
 " Tests for expressions.
 
-source check.vim
 import './vim9.vim' as v9
 
 func Test_printf_pos_misc()
index 847987b55b6bc959eb55e680eb37cab997b96b60..ae16d1e85c565d8aa5d940d9829702c867481034 100644 (file)
@@ -1,8 +1,5 @@
 " Tests for various functions.
 
-source shared.vim
-source check.vim
-source term_util.vim
 source screendump.vim
 import './vim9.vim' as v9
 
index ddfc402a3da322fb6784acfaa1300b9b37fe6285..626e2563cc0f2381ed986e16f504d953c1e0eddd 100644 (file)
@@ -1,8 +1,7 @@
-source check.vim
+" Test for gettext()
 
 CheckFeature gettext
 
-" Test for gettext()
 func Test_gettext()
   call assert_fails('call bindtextdomain("test")', 'E119:')
   call assert_fails('call bindtextdomain("vim", "test")', 'E475:')
index 9c30e091ef010b2d3e14e5961b6d209b799e18f1..0108dbbfca52f2db46ef5f3422436a7ade82b1d5 100644 (file)
@@ -1,4 +1,3 @@
-source check.vim
 " This fail on CI MacOS 14 because bindtextdomain() is not available there
 " (missing library?)
 CheckNotMac
index 860aa2c65be86b972579916518318f0cf310c4bb..2347c8ea10db99e4e4e45f6adaad6ee862393b6e 100644 (file)
@@ -1,4 +1,3 @@
-source check.vim
 CheckNotMac
 CheckFeature gettext
 
index 87fe1b1449b4c3a93664126d35aa87f79c5b6294..b1ab6f8b0b7b31c09f0d06c5936d55409b970190 100644 (file)
@@ -1,4 +1,3 @@
-source check.vim
 " This fail on CI MacOS 14 because bindtextdomain() is not available there
 " (missing library?)
 CheckNotMac
index 0f72c3cf80cd733a8bf08a0a65045cfa9d616cf9..4dddd0fb9cb721adbf665cd63362a90ef17c4d09 100644 (file)
@@ -1,8 +1,5 @@
 " Test for :global and :vglobal
 
-source check.vim
-source term_util.vim
-
 func Test_yank_put_clipboard()
   new
   call setline(1, ['a', 'b', 'c'])
index 83de2ad7050040f0bd84aae50cf05f4d7342b559..45966eba59474cdd364728f6797b00de8fc989a2 100644 (file)
@@ -1,7 +1,5 @@
 " Tests specifically for the GUI
 
-source shared.vim
-source check.vim
 CheckCanRunGui
 
 source setup_gui.vim
index 6f22013508a3e26f558040ccb56966bc980a3ffa..f3effff48a37d18faf1897f81bb85097e8a84749 100644 (file)
@@ -1,8 +1,6 @@
 " Tests specifically for the GUI features/options that need to be set up at
 " startup to take effect at runtime.
 
-source shared.vim
-source check.vim
 CheckCanRunGui
 
 source setup_gui.vim
index 926ff8f97d08b0ce189f69cec34fa1d2f7371842..33ef4bff1bfb11cf813b3c75515d05b8cea9ba62 100644 (file)
@@ -1,7 +1,5 @@
 " Test :hardcopy
 
-source check.vim
-
 func Test_printoptions()
   edit test_hardcopy.vim
   syn on
index 6422317de5b2be8da7fb904b0a95db0043ed69c1..e87d312585c26ac8066c5f7d3743c4d83c0c958d 100644 (file)
@@ -1,6 +1,5 @@
 " Tests for :help
 
-source check.vim
 import './vim9.vim' as v9
 
 func Test_help_restore_snapshot()
index 91423eb96eb1300238bf47f98422dc18d0c45007..487eb8dc14795cf1de85a83da8502e658cbbc3ea 100644 (file)
@@ -1,8 +1,6 @@
 " Tests for ":highlight" and highlighting.
 
-source view_util.vim
 source screendump.vim
-source check.vim
 source script_util.vim
 import './vim9.vim' as v9
 
index b288abc3f6a8ffb90b0e5b98b25829b88f6ab731..2470a5bce5ee4b287700605c889bb9796808299c 100644 (file)
@@ -1,6 +1,5 @@
 " Tests for the history functions
 
-source check.vim
 CheckFeature cmdline_hist
 
 set history=7
index 557fe5da5c61ec1170c01827cd3390f092bd4e9e..18992d32b461dd0d3a8acbd14b785acb65576592 100644 (file)
@@ -1,6 +1,5 @@
 " Test for v:hlsearch
 
-source check.vim
 source screendump.vim
 
 func Test_hlsearch()
index 11fe24ee44f4ba7a5eb3a435a3c39325a7734fc4..e20cddd3cb976a8e8a782d6356b7c7d6264620c8 100644 (file)
@@ -1,7 +1,5 @@
 " Test for 'iminsert'
 
-source view_util.vim
-source check.vim
 import './vim9.vim' as v9
 
 let s:imactivatefunc_called = 0
index 57f5206e7749c9d72035dd286c1052bae3b2a3f2..e20694792cc0f69a7228c332fb75c55da43cb07d 100644 (file)
@@ -1,8 +1,5 @@
 " Test for various indent options
 
-source shared.vim
-source check.vim
-
 func Test_preserveindent()
   new
   " Test for autoindent copying indent from the previous line
index f1ed313934f5a65f4f5a7a898189e6c40037d051..d906e7ad6314f1254609c5eb165a0172afff1a23 100644 (file)
@@ -1,7 +1,6 @@
 " Test for insert completion
 
 source screendump.vim
-source check.vim
 import './vim9.vim' as v9
 
 " Test for insert expansion
index 1751d1d5beffad32a2ea22b32313209be5d60e9c..b8eee916cdec53521f3551c84c82afddef7ee6c2 100644 (file)
@@ -2,8 +2,6 @@
 " 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.
 
-source check.vim
-
 func Test_job_start_fails()
   CheckFeature job
   let job = job_start('axdfxsdf')
index f05080e0891a608f6ae6b3f3c118bf587f87f57c..42f53b1ebd84bd588dc73306e8cdac5743451cd1 100644 (file)
@@ -1,6 +1,5 @@
 " Test for lambda and closure
 
-source check.vim
 import './vim9.vim' as v9
 
 func Test_lambda_feature()
index aaed77e10986d0a4d4c611ebebfcfe32edaed4d8..4a8427732b617de2d635f7e9a62c5a059e1e7eb9 100644 (file)
@@ -1,6 +1,5 @@
 " tests for 'langmap'
 
-source check.vim
 CheckFeature langmap
 
 func Test_langmap()
index 8bed38a589d277134658460095a4bfe314913ebb..387f6afd65240b5d036c112c60e3457a827a842a 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for 'listchars' display with 'list' and :list
 
-source check.vim
-source view_util.vim
 source screendump.vim
 
 func Check_listchars(expected, end_lnum, end_scol = -1, leftcol = 0)
index 68bf948658296770620afa2240abee0cebfbd99a..d1869838e9878f9c7b7e2097bb3e66227e37f0e8 100644 (file)
@@ -3,11 +3,9 @@
 set encoding=latin1
 scriptencoding latin1
 
-source check.vim
 CheckOption linebreak
 CheckFeature conceal
 
-source view_util.vim
 source screendump.vim
 
 function s:screen_lines(lnum, width) abort
index bd0578eff98e6b543931629c4e059fdd53c915e3..d69cae76de0d4125ada27fc9c66e942d4c6e3f2d 100644 (file)
@@ -3,12 +3,10 @@
 set encoding=utf-8
 scriptencoding utf-8
 
-source check.vim
 CheckOption linebreak
 CheckFeature conceal
 CheckFeature signs
 
-source view_util.vim
 source screendump.vim
 
 func s:screen_lines(lnum, width) abort
index 043531a5548ba35ccb5d89e1b05ac48bd08e5aad..7e61de22c2a3fdc8a9c4deb896316b7e3e0b32d8 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for Lua.
 
-source check.vim
-
 " This test also works without the lua feature.
 func Test_skip_lua()
   if 0
index f3dc82bc56f32537cb3a0008419c0ac461e0d00c..40bad97fbf9d26054653505e8f9eac06a2840d91 100644 (file)
@@ -1,8 +1,5 @@
 " Tests for 'makeencoding'.
 
-source shared.vim
-source check.vim
-
 CheckFeature quickfix
 let s:python = PythonProg()
 if s:python == ''
index db639337fcf60904cf30fc8dad4e09786163a3cc..8f98ef7589c1a2030c300b3f7939b9fbce601108 100644 (file)
@@ -1,8 +1,6 @@
 " Tests for maparg(), mapcheck(), mapset(), maplist()
 " Also test utf8 map with a 0x80 byte.
 
-source shared.vim
-
 func s:SID()
   return str2nr(matchstr(expand('<sfile>'), '<SNR>\zs\d\+\ze_SID$'))
 endfunc
index c3525315fe2233e87429b4887cbd55cda0c9b046..28b0188b7d30bf649ba61d1173b507a558b31b9c 100644 (file)
@@ -1,9 +1,6 @@
 " Tests for mappings and abbreviations
 
-source shared.vim
-source check.vim
 source screendump.vim
-source term_util.vim
 import './vim9.vim' as v9
 
 func Test_abbreviation()
index 1e42aba406d967703afbe179aaf8e10213c78b01..35311d43237ef9117c16b4101b5d80503748b154 100644 (file)
@@ -2,7 +2,6 @@
 " matchaddpos(), matcharg(), matchdelete(), and setmatches().
 
 source screendump.vim
-source check.vim
 
 function Test_match()
   highlight MyGroup1 term=bold ctermbg=red guibg=red
index 1602c4f1575bb8c639eec3252a5964c59d256c1a..764e8c6e382de4a736a94bb5f3eefbc2d45e839d 100644 (file)
@@ -1,16 +1,11 @@
 " Test for matchadd() and conceal feature
 
-source check.vim
 CheckFeature conceal
 
 if !has('gui_running') && has('unix')
   set term=ansi
 endif
 
-source shared.vim
-source term_util.vim
-source view_util.vim
-
 func Test_simple_matchadd()
   new
 
index 83849e133f63bd618d8f9135c85c66dc0784af7f..bc8a97c40ff8700ec9c95d65508daba1083ca360 100644 (file)
@@ -1,6 +1,5 @@
 " Test for matchadd() and conceal feature using utf-8.
 
-source check.vim
 CheckFeature conceal
 
 if !has('gui_running') && has('unix')
index a16bae5ee32821b56257a16ca9bedd8ae2ea1e63..8aa7f3218756efd2cf6c817c75fb3957841c9952 100644 (file)
@@ -1,9 +1,5 @@
 " Tests for fuzzy matching
 
-source shared.vim
-source check.vim
-source term_util.vim
-
 " Test for matchfuzzy()
 func Test_matchfuzzy()
   call assert_fails('call matchfuzzy(10, "abc")', 'E686:')
index 13e7eec876aac71715b3a59d4069d0bf066689ee..66c27a1f7ede21f05eafe7e3d8c33ad550f9520d 100644 (file)
@@ -1,6 +1,5 @@
 " Tests for memory usage.
 
-source check.vim
 CheckFeature terminal
 CheckNotGui
 
@@ -8,8 +7,6 @@ CheckNotGui
 " usage.
 CheckNotAsan
 
-source shared.vim
-
 func s:pick_nr(str) abort
   return substitute(a:str, '[^0-9]', '', 'g') * 1
 endfunc
index 8ac1da55c5234b0bef2e3275af3823ac44a9e3b5..f441190d9158282ceaf34de82f7b34cbc4a783a2 100644 (file)
@@ -1,6 +1,5 @@
 " Test that the system menu can be loaded.
 
-source check.vim
 CheckFeature menu
 
 source screendump.vim
index e1eab59ebac3b5b6c2dca9171b60e7c8b100768d..e9eb0991d659b10f63ef9bea26b856215e0e57fa 100644 (file)
@@ -1,9 +1,5 @@
 " Tests for :messages, :echomsg, :echoerr
 
-source check.vim
-source shared.vim
-source term_util.vim
-source view_util.vim
 source screendump.vim
 
 func Test_messages()
index 99e4917c0cad24ec2e64f154eae1b79f6242d4fe..797aa60ce026d3565c4f0f51df25f2b09acf11d3 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for ->method()
 
-source check.vim
-
 func Test_list_method()
   let l = [1, 2, 3]
   call assert_equal([1, 2, 3, 4], [1, 2, 3]->add(4))
index 8217d91b8ca7b2680e1b27f28a74998678b15ec8..c4d8fd7ee57a076245f7e39bdf9727fb018c379f 100644 (file)
@@ -3,12 +3,8 @@
 set encoding=latin1
 scriptencoding latin1
 
-source check.vim
 CheckFeature mksession
 
-source shared.vim
-source term_util.vim
-
 " Test for storing global and local argument list in a session file
 " This one must be done first.
 func Test__mksession_arglocal()
index 387d128f6e5e9332be759b37719bb4b3b8ce567e..d467dc20c6ba867d450af78ad797a5cc0f84f9e9 100644 (file)
@@ -3,7 +3,6 @@
 set encoding=utf-8
 scriptencoding utf-8
 
-source check.vim
 CheckFeature mksession
 
 func Test_mksession_utf8()
index 281c2486741a6d3c67c0beec1dd65c22179a2ca8..d96be4bd02034b1f83dd7bb42c75ddc6f23286e5 100644 (file)
@@ -1,11 +1,9 @@
 " Test for modeless selection
 
 " This only works for Unix in a terminal
-source check.vim
 CheckNotGui
 CheckUnix
 
-source shared.vim
 source mouse.vim
 
 " Test for modeless characterwise selection (single click)
index 0697fbbce9059ccf319781f1858ac8c349452c0c..1f8686328a5956126ee8787f261ec6605be85562 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for parsing the modeline.
 
-source check.vim
-
 func Test_modeline_invalid()
   " This was reading allocated memory in the past.
   call writefile(['vi:0', 'nothing'], 'Xmodeline', 'D')
index d932a60e08aca0ed2f1331b34fd500d314a4ee73..c45157f27319b423421112ec185f358e0925566e 100644 (file)
@@ -1,6 +1,5 @@
 " Test the ":move" command.
 
-source check.vim
 source screendump.vim
 
 func Test_move()
index 3b7b3c7d5ec11f9648ea61d7f10cbefa745c7185..0a4407c31f40d371d73cb537c9b1b5ac2256d0f6 100644 (file)
@@ -1,7 +1,6 @@
 " Test MS-Windows input event handling.
 " Most of this works the same in Windows GUI as well as Windows console.
 
-source check.vim
 CheckMSWindows
 source mouse.vim
 
index 0bc98421d305c483e46dbb69121615db6bb2209f..a6f57a893cabc5cf46ff357532af9bfcd7888296 100644 (file)
@@ -1,6 +1,5 @@
 " Test for MzScheme interface and mzeval() function
 
-source check.vim
 CheckFeature mzscheme
 
 func MzRequire()
index 5599655461e4b015c01e6f9e51cbd18e7b7eea22..9b8f564365555730798a7a921d52cd348eef3949 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for nested functions
 
-source check.vim
-
 func NestedFunc()
   func! Func1()
     let g:text .= 'Func1 '
index e458e38961b7336903b25910d6efea113b29e8cd..cfb973692aea79248ce2da9e15ee722637d70c84 100644 (file)
@@ -1,10 +1,7 @@
 " Test the netbeans interface.
 
-source check.vim
 CheckFeature netbeans_intg
 
-source shared.vim
-
 let s:python = PythonProg()
 if s:python == ''
   throw 'Skipped: python program missing'
index a0ee3b80b1b0ea02fab0271dc4b95ef89ff8ec1e..aa1fa1034d78c52d561ee09da049f7aee08fce76 100644 (file)
@@ -1,8 +1,5 @@
 " Test for various Normal mode commands
 
-source shared.vim
-source check.vim
-source view_util.vim
 import './vim9.vim' as v9
 source screendump.vim
 
index b57c1ed2c56e97c0e73eab8fb99dd38695a84520..10b69881fbb8850fd78f739b94a43334579422af 100644 (file)
@@ -1,8 +1,5 @@
 " Test for 'number' and 'relativenumber'
 
-source check.vim
-source view_util.vim
-
 source screendump.vim
 
 func s:screen_lines(start, end) abort
index 21e4a03579b77c359be5870d05c798d39da8458f..e4bf63a6bfb46f24deb5ec65fa797f1803434258 100644 (file)
@@ -1,9 +1,5 @@
 " Test for options
 
-source shared.vim
-source check.vim
-source view_util.vim
-
 scriptencoding utf-8
 
 func Test_whichwrap()
index eab710def424eb99f4b117b4cb5125e78e6e007b..cd7126a9dbadaf95f395daacd5120329cbbd8bf8 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for 'packpath' and :packadd
 
-source check.vim
-
 func SetUp()
   let s:topdir = getcwd() . '/Xppdir'
   exe 'set packpath=' . s:topdir
index acc8b73c815e7b9bd561ec0ced88825668b2b019..a6ba84a7b63291987ba6bccaa10e382ca09c1ddf 100644 (file)
@@ -1,7 +1,5 @@
 " Test binding arguments to a Funcref.
  
-source check.vim
-
 func MyFunc(arg1, arg2, arg3)
   return a:arg1 . '/' . a:arg2 . '/' . a:arg3
 endfunc
index b35fc8123dcdf7d5fe2d4bb1e95497777729fba3..bd87e3be7eeb0b88a9008998f2542a4e2d8b0926 100644 (file)
@@ -1,15 +1,11 @@
 " Tests for bracketed paste and other forms of pasting.
 
 " Bracketed paste only works with "xterm".  Not in GUI or Windows console.
-source check.vim
-source term_util.vim
 CheckNotMSWindows
 CheckNotGui
 
 set term=xterm
 
-source shared.vim
-
 func Test_paste_normal_mode()
   new
   " In first column text is inserted
index 31329ca79ed4d65e7babc72fd95d352018bfa965..cededb2e4bc06189992e0dc9b8d6855e0a6dcb37 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for Perl interface
 
-source check.vim
-source shared.vim
 CheckFeature perl
 
 " FIXME: RunTest don't see any error when Perl abort...
index 1c50748137e207b84aa46ca7a0184ad87c95ac75..c07d21a29bdcead50d128aeaca3196b8c89b7b33 100644 (file)
@@ -1,8 +1,5 @@
 " Test for the comment package
 
-source check.vim
-source term_util.vim
-
 func Test_basic_comment()
   CheckScreendump
   let lines =<< trim END
index 74563a19a781cc2ba02e0e455791ab15525cbb1a..47fd3ed05f3285d755543de3f58a317bdc50dae9 100644 (file)
@@ -4,8 +4,6 @@ if !has('gui_running') && has('unix')
   set term=ansi
 endif
 
-source view_util.vim
-source check.vim
 source screendump.vim
 
 " Test for scrolling that modifies buffer during visual block
index a045a8dad20cdc443cc02a0d3426908557c5c289..9017bda9f1c457c3050886e31d8d2a936e676a00 100644 (file)
@@ -1,8 +1,6 @@
 " Test for the termdebug plugin
 
-source shared.vim
 source screendump.vim
-source check.vim
 
 CheckUnix
 CheckFeature terminal
index a1c8572732040f2ea4b13fa283e3dc2888dd8e51..a5c9d27b6e0cf84c9dcb3f9838bd93724af0cd42 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for Vim :TOhtml
 
-source check.vim
-
 func s:setup_basic(src_name)
   let lines =<< trim END
     #include <stdio.h>
index 5b85b650e2ac772c897ecbce0d0503577f59aa14..5c3dcd949dfecddbfe7f11bfc57d01797834c977 100644 (file)
@@ -1,7 +1,6 @@
 " Test for the new-tutor plugin
 
 source screendump.vim
-source check.vim
 source script_util.vim
 
 func SetUp()
index 2050b4ce101779ee47a338c7fcfc494e91e43694..516f54e3a9d7d6ce8d224707e85f959f1e7b94f7 100644 (file)
@@ -1,5 +1,3 @@
-so check.vim
-
 CheckExecutable unzip
 
 if 0 " Find uncovered line
index 0ace290d20db32c66eb62347f130846c3f4a14cb..7e268e80c201e417294e280a91da178aecd902fb 100644 (file)
@@ -1,8 +1,6 @@
 " Test for completion menu
 
-source shared.vim
 source screendump.vim
-source check.vim
 
 let g:months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
 let g:setting = ''
index f01b74926925a6c5e3df8e75de99defb7efa893e..6464e1eab86c00527e354f2b968e5f27d1cfb5d2 100644 (file)
@@ -1,10 +1,8 @@
 " Tests for popup windows
 
-source check.vim
 CheckFeature popupwin
 
 source screendump.vim
-source term_util.vim
 
 func Test_simple_popup()
   CheckScreendump
index 50e2848800640e2368c1e14263802c2de4c780ab..a09938320e0a3facec19c4c11d0bb4bf7ac8108c 100644 (file)
@@ -1,6 +1,5 @@
 " Tests for popup windows for text properties
 
-source check.vim
 CheckFeature popupwin
 CheckFeature textprop
 
index 7c7883ace06b3fa0c4866ec78ddd154d07866ab6..e06139c3f3e60b610c971299253c975d9c011a7a 100644 (file)
@@ -1,6 +1,5 @@
 " Tests for the preview window
 
-source check.vim
 CheckFeature quickfix
 
 func Test_Psearch()
index 534cc768c44a46ee5c31a6551f8f40fc0d226ee3..8c0260cbbb6a389a49f6ae6cb954f27a88ebba66 100644 (file)
@@ -1,9 +1,7 @@
 " Test Vim profiler
 
-source check.vim
 CheckFeature profile
 
-source shared.vim
 source screendump.vim
 
 if has('prof_nsec')
index c5ef0103431d85fdd094da436f7fd25aa4417e09..414ed6e6cbb426a0ac7f8645bbf13554a94610a8 100644 (file)
@@ -1,9 +1,7 @@
 " Tests for setting 'buftype' to "prompt"
 
-source check.vim
 CheckFeature channel
 
-source shared.vim
 source screendump.vim
 
 func CanTestPromptBuffer()
index 5a99b3b636194631d8d2d70130f2bb0e91417d67..91a01a4f21b1fb98f26302cb436e43ac84130966 100644 (file)
@@ -1,6 +1,5 @@
 " Tests for put commands, e.g. ":put", "p", "gp", "P", "gP", etc.
 
-source check.vim
 source screendump.vim
 
 func Test_put_block()
index cafba3de59b8a2aa6b69f854360a2d2617b5cefb..30c3b33a918c4d901a81a5670441ba3d42565cc3 100644 (file)
@@ -1,9 +1,7 @@
 " Test for python 2 commands.
 
-source check.vim
 CheckFeature python
 CheckFeature quickfix
-source shared.vim
 
 " NOTE: This will cause errors when run under valgrind.
 " This would require recompiling Python with:
index e59ddf93cead70f747e43c4c43540945c958ced1..bd000ef05adabb095aab2ffb1a8525ad7faedf1e 100644 (file)
@@ -1,8 +1,6 @@
 " Test for python 3 commands.
 
-source check.vim
 CheckFeature python3
-source shared.vim
 
 func Create_vim_list()
   return [1]
index 68f1901e28349355e7ba41a257181b62aebcf47a..40b359afab0c44b474339600dbf7a9ccf6e03384 100644 (file)
@@ -1,7 +1,6 @@
 " Test for pyx* commands and functions with Python 2.
 
 set pyx=2
-source check.vim
 CheckFeature python
 
 let s:py2pattern = '^2\.[0-7]\.\d\+'
index b02f447e2c63ffa79b56f30f4eea4ed949b88bed..7820cc9c3bece8e896fc1f8bfeb22cd766829774 100644 (file)
@@ -1,7 +1,6 @@
 " Test for pyx* commands and functions with Python 3.
 
 set pyx=3
-source check.vim
 CheckFeature python3
 
 let s:py2pattern = '^2\.[0-7]\.\d\+'
index dc2a2a4c5ce34e6b43eb1a8848b3845b3cf53834..7047d8c2b24f3957faaba28fd2755203bcc45dc6 100644 (file)
@@ -1,6 +1,5 @@
 " Test for the quickfix feature.
 
-source check.vim
 import './vim9.vim' as v9
 CheckFeature quickfix
 
index 322ce6260b91103cc695b189d6af26d4264c4af1..7ccee43a53374d335eeea522392fd3622874a357 100644 (file)
@@ -1,8 +1,5 @@
 " *-register (quotestar) tests
 
-source shared.vim
-source check.vim
-
 CheckFeature clipboard_working
 
 func Do_test_quotestar_for_macunix()
index be8473f29d438c1759faa9c604e830b501c09b4d..02a4624c1d60e8a32754e861e36fcaeec1a8bc7c 100644 (file)
@@ -1,8 +1,5 @@
 " Tests for srand() and rand()
 
-source check.vim
-source shared.vim
-
 func Test_Rand()
   let r = srand(123456789)
   call assert_equal([1573771921, 319883699, 2742014374, 1324369493], r)
index e85b2e9b59fd5a663b8ac81e4fa45131232bb2ac..db59223c295f7c884945b53f7d2bc8e9ad32ba10 100644 (file)
@@ -1,7 +1,5 @@
 " Test :recover
 
-source check.vim
-
 func Test_recover_root_dir()
   " This used to access invalid memory.
   split Xtest
index db16f057c8a59e3b721f20120d154ea20cd7f31b..5e77c857f06109611a4f8e5b016f518f5b08b530 100644 (file)
@@ -1,6 +1,5 @@
 " Tests for regexp with backslash and other special characters inside []
 " Also test backslash for hex/octal numbered character.
-"
 
 scriptencoding utf-8
 
@@ -20,7 +19,6 @@ function RunXTest(value, search_exp, expected)
   quit!
 endfunction
 
-
 function Test_x_search()
   let res = "test text test text"
   call RunXTest("test \\text test text", "/[\\x]", res)
index 63f093a1ac72930e1cb078c877c7e81a03800263..573cf139ba6022cb83da41aacd7044975d7abeff 100644 (file)
@@ -3,8 +3,6 @@
 set encoding=latin1
 scriptencoding latin1
 
-source check.vim
-
 func s:equivalence_test()
   let str = 'AÀÁÂÃÄÅ B C D EÈÉÊË F G H IÌÍÎÏ J K L M NÑ OÒÓÔÕÖØ P Q R S T UÙÚÛÜ V W X YÝ Z '
   \      .. 'aàáâãäå b c d eèéêë f g h iìíîï j k l m nñ oòóôõöø p q r s t uùúûü v w x yýÿ z '
index 51c0984adbf323d49e49fbaeb4a8897bbf86a0c8..a4353f1b4b2512d5d73e1906dd72f58f00ad8c29 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for regexp in utf8 encoding
 
-source shared.vim
-
 func s:equivalence_test()
   let str = "AÀÁÂÃÄÅĀĂĄǍǞǠǺȂȦȺḀẠẢẤẦẨẪẬẮẰẲẴẶ BƁɃḂḄḆ CÇĆĈĊČƇȻḈꞒ DĎĐƊḊḌḎḐḒ EÈÉÊËĒĔĖĘĚȄȆȨɆḔḖḘḚḜẸẺẼẾỀỂỄỆ FƑḞꞘ GĜĞĠĢƓǤǦǴḠꞠ HĤĦȞḢḤḦḨḪⱧ IÌÍÎÏĨĪĬĮİƗǏȈȊḬḮỈỊ JĴɈ KĶƘǨḰḲḴⱩꝀ LĹĻĽĿŁȽḶḸḺḼⱠ MḾṀṂ NÑŃŅŇǸṄṆṈṊꞤ OÒÓÔÕÖØŌŎŐƟƠǑǪǬǾȌȎȪȬȮȰṌṎṐṒỌỎỐỒỔỖỘỚỜỞỠỢ PƤṔṖⱣ QɊ RŔŖŘȐȒɌṘṚṜṞⱤꞦ SŚŜŞŠȘṠṢṤṦṨⱾꞨ TŢŤŦƬƮȚȾṪṬṮṰ UÙÚÛÜŨŪŬŮŰƯǕǙǛǓǗȔȖɄṲṴṶṸṺỤỦỨỪỬỮỰ  VƲṼṾ WŴẀẂẄẆẈ XẊẌ YÝŶŸƳȲɎẎỲỴỶỸ ZŹŻŽƵẐẒẔⱫ aàáâãäåāăąǎǟǡǻȃȧᶏḁẚạảấầẩẫậắằẳẵặⱥ bƀɓᵬᶀḃḅḇ cçćĉċčƈȼḉꞓꞔ dďđɗᵭᶁᶑḋḍḏḑḓ eèéêëēĕėęěȅȇȩɇᶒḕḗḙḛḝẹẻẽếềểễệ fƒᵮᶂḟꞙ gĝğġģǥǧǵɠᶃḡꞡ hĥħȟḣḥḧḩḫẖⱨꞕ iìíîïĩīĭįǐȉȋɨᶖḭḯỉị jĵǰɉ kķƙǩᶄḱḳḵⱪꝁ lĺļľŀłƚḷḹḻḽⱡ mᵯḿṁṃ nñńņňʼnǹᵰᶇṅṇṉṋꞥ oòóôõöøōŏőơǒǫǭǿȍȏȫȭȯȱɵṍṏṑṓọỏốồổỗộớờởỡợ pƥᵱᵽᶈṕṗ qɋʠ rŕŗřȑȓɍɽᵲᵳᶉṛṝṟꞧ sśŝşšșȿᵴᶊṡṣṥṧṩꞩ tţťŧƫƭțʈᵵṫṭṯṱẗⱦ uùúûüũūŭůűųǚǖưǔǘǜȕȗʉᵾᶙṳṵṷṹṻụủứừửữự vʋᶌṽṿ wŵẁẃẅẇẉẘ xẋẍ yýÿŷƴȳɏẏẙỳỵỷỹ zźżžƶᵶᶎẑẓẕⱬ"
   let groups = split(str)
index 3615e1ece95cfa4a92d43c1178519dd7ef0174b2..b30b854e00acfad2e76a3ae137bdf1ef8dc672cf 100644 (file)
@@ -1,8 +1,5 @@
 " Tests for register operations
 
-source check.vim
-source view_util.vim
-
 " This test must be executed first to check for empty and unset registers.
 func Test_aaa_empty_reg_test()
   call assert_fails('normal @@', 'E748:')
index 54104d511ec8daf07fa7fdb6437f2c084630d416..14d0d7e6f8fc627081cc4539b8ba1b1187cc79ef 100644 (file)
@@ -1,6 +1,5 @@
 " Tests for reltime()
 
-source check.vim
 CheckFeature reltime
 
 func Test_reltime()
index fd8b0af2400d6acb42a8ad41f38b2ddbd285345d..a10cb1250921529e4fe89c24ba7837ddab4268f6 100644 (file)
@@ -1,13 +1,10 @@
 " Test for the --remote functionality
 
-source check.vim
 CheckFeature clientserver
 CheckFeature terminal
 
-source shared.vim
 source screendump.vim
 source mouse.vim
-source term_util.vim
 
 let s:remote_works = 0
 let s:skip = 'Skipped: --remote feature is not possible'
index 26efe5c4879ed9dcea423f12d8e453d153edaa32..b1264a6c4b855debfcb0f0cb7411940c1ddb5b4d 100644 (file)
@@ -1,7 +1,5 @@
 " Test rename()
 
-source shared.vim
-
 func Test_rename_file_to_file()
   call writefile(['foo'], 'Xrename1')
 
index d01406eb01868fa526fa33330ab411f05c6a59a4..3099dfec1e6f8d917503c4eb1cac3b72496c16ac 100644 (file)
@@ -1,7 +1,5 @@
 " Test for "rvim" or "vim -Z"
 
-source shared.vim
-
 "if has('win32') && has('gui')
 "  " Win32 GUI shows a dialog instead of displaying the error in the last line.
 "  finish
index a4f95053c0b1edfa52e5425b66e75f0397174bb4..8cd6f77be30ec8e93d3cdfb6b87bac8757ae3a0f 100644 (file)
@@ -1,7 +1,5 @@
 " Test :retab
 
-source check.vim
-
 func SetUp()
   new
   call setline(1, "\ta  \t    b        c    ")
index d4ff8e0b7283738525c43a84c9e3c17457074df2..e5af66500aacd0046bbe2f968c3e12734715fd4c 100644 (file)
@@ -1,6 +1,5 @@
 " Tests for ruby interface
 
-source check.vim
 CheckFeature ruby
 
 func Test_ruby_change_buffer()
index 7573db9ac3859671c56c8e40447fb6b2c3d7c5de..b4780ebc33daac327e34ff50aa80d91b527c30fb 100644 (file)
@@ -1,6 +1,5 @@
 " Test for 'scroll', 'scrolloff', 'smoothscroll', etc.
 
-source check.vim
 source screendump.vim
 source mouse.vim
 
index 446d5ecd3ac9afe814e2ecdb1c2c5cc94be716ce..2921e195875536baaa64a99bc0e6f5ae5277ab2a 100644 (file)
@@ -1,8 +1,6 @@
 " Test for the search command
 
-source shared.vim
 source screendump.vim
-source check.vim
 
 func Test_search_cmdline()
   CheckOption incsearch
index c8e055d7db14ac1d7d5c33090a609b11d3b1ca90..72d4bcd367631a122d193af5d085ab7209a34974 100644 (file)
@@ -1,6 +1,5 @@
 " Tests for search_stats, when "S" is not in 'shortmess'
 
-source check.vim
 source screendump.vim
 
 func Test_search_stat()
index 63aa0b9a191f6e2eeab5e39fac0cbdd4588f398f..705c4ce90a20a82a27bab76722dbaef948eb9d5a 100644 (file)
@@ -1,7 +1,6 @@
 " Test for Select-mode
 
 " This only works for Unix in a terminal
-source check.vim
 CheckNotGui
 CheckUnix
 
index f38ac334cd2d27038ac137e5eaaea0baa2f934a4..199cdd45c71c49e97f72dd910ae6fa3cde1e23f3 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for the :set command
 
-source check.vim
-
 function Test_set_backslash()
   let isk_save = &isk
 
index a1bec978befa27c42e1c118656465c530938e7f8..3db1b2a99c321bc1dded61a5430df5b6f972ba17 100644 (file)
@@ -1,6 +1,5 @@
 " Tests for the sha256() function.
 
-source check.vim
 CheckFeature cryptv
 CheckFunction sha256
 
index 667b158ce8fd57bd2c84f0b2776a71a6540bc604..647d34870d6a6b3958723d075ba47faf099ca6dc 100644 (file)
@@ -1,9 +1,6 @@
 " Test for the shell related options ('shell', 'shellcmdflag', 'shellpipe',
 " 'shellquote', 'shellredir', 'shellxescape', and 'shellxquote')
 
-source check.vim
-source shared.vim
-
 func Test_shell_options()
   if has('win32')
     " FIXME: This test is flaky on MS-Windows.
index f31c5a11e6b618b971ca6bf77ee39e3fdfcf4ba3..da9a0062087ec9e674168e43ed62ccd156506f40 100644 (file)
@@ -1,7 +1,5 @@
 " Test shifting lines with :> and :<
 
-source check.vim
-
 func Test_ex_shift_right()
   set shiftwidth=2
 
index 0c41692a06ebdb0ec7dc96ee6e10bc93bba65e10..b3d7b82be50133361625b014026a05f1b921fabb 100644 (file)
@@ -4,7 +4,6 @@
 set encoding=utf-8
 scriptencoding utf-8
 
-source check.vim
 CheckMSWindows
 
 func TestIt(file, bits, expected)
index 4b6c7345ca81fc12d46e86505f29443eea70d6df..351560024e8d7305f5c865de11534cf66d2bc8e7 100644 (file)
@@ -1,12 +1,7 @@
 " Test signal handling.
 
-source check.vim
-source term_util.vim
-
 CheckUnix
 
-source shared.vim
-
 " Check whether a signal is available on this system.
 func HasSignal(signal)
   let signals = system('kill -l')
index e66e6fa0115e85dedca7f506e88c2905cb9e4bde..78988b2467df425352681b56e59ac6ec17bf5558 100644 (file)
@@ -1,6 +1,5 @@
 " Test for signs
 
-source check.vim
 CheckFeature signs
 
 source screendump.vim
index 14a70cf934addf58a537c6f5958096aa0ba3562d..60b0212428d036cefd67a5783e3805eefeb2c38c 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for the "sort()" function and for the ":sort" command.
 
-source check.vim
-
 func Compare1(a, b) abort
   call sort(range(3), 'Compare2')
   return a:a - a:b
index 401753e6606bb56e466c5e7dc058f08c13fe6628..fba904c1dd099086b289ff198fa95ca69da0626e 100644 (file)
@@ -1,8 +1,5 @@
 " Tests for the sound feature
 
-source check.vim
-source shared.vim
-
 CheckFeature sound
 
 func PlayCallback(id, result)
index 55b2ffff201cc8b41bd67494adb74a5ee65cc7b6..b7b0d117538a157e959ab01cebcf92b33fc562c5 100644 (file)
@@ -1,8 +1,5 @@
 " Tests for the :source command.
 
-source check.vim
-source view_util.vim
-
 func Test_source_autocmd()
   call writefile([
        \ 'let did_source = 1',
index bd7cd8d2488291a8877587c613636b6580e5f852..13758164f4b81940cac530c1b40ad98777cc447e 100644 (file)
@@ -1,7 +1,5 @@
 " Test the :source! command
 
-source check.vim
-
 func Test_source_utf8()
   " check that sourcing a script with 0x80 as second byte works
   new
index 692e191a3cf20884f1158958e21625fdb98c13d4..0d8ec99531d077e73248bbfedd1dc9a68e1f8dda 100644 (file)
@@ -1,11 +1,9 @@
 " Test spell checking
 " Note: this file uses latin1 encoding, but is used with utf-8 encoding.
 
-source check.vim
 CheckFeature spell
 
 source screendump.vim
-source view_util.vim
 
 func TearDown()
   set nospell
index bb2c354a3d62e01b6d34ef5427f3bb1fe38da62b..2a5e8091f41c7c6cbf356a95959e0fc030e56838 100644 (file)
@@ -1,6 +1,5 @@
 " Test for spell checking with 'encoding' set to utf-8
 
-source check.vim
 CheckFeature spell
 
 scriptencoding utf-8
index dd12698b99b86de591aa5026f453782d07982fd9..b72974ed07e8d8b3c25ea3c13a80f59722dc685c 100644 (file)
@@ -1,8 +1,5 @@
 " Test for commands that operate on the spellfile.
 
-source shared.vim
-source check.vim
-
 CheckFeature spell
 CheckFeature syntax
 
index ceb35cbd17dd7962a7880078d1aaaf54e55363a6..9dcd12c970a9f2194608438d4987a3ecea0a4fea 100644 (file)
@@ -1,6 +1,5 @@
 " Test spell checking
 
-source check.vim
 CheckFeature spell
 
 " Test spellbadword() with argument, specifically to move to "rare" words
index c56173e263fbe62d60fd12abb4e9c0c61ea6fe69..cd9935527e597ef47bf24a65b14221381fe647d6 100644 (file)
@@ -1,9 +1,6 @@
 " Tests for startup.
 
-source shared.vim
 source screendump.vim
-source term_util.vim
-source check.vim
 
 " Check that loading startup.vim works.
 func Test_startup_script()
index 937766767c6c9420127cf9cb4bd1a5fc19f9d195..f31c150677ed8000ca8596b3d4f67a688868d6e2 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for startup using utf-8.
 
-source check.vim
-source shared.vim
 source screendump.vim
 
 func Test_read_stdin_utf8()
index ed123e4347183a453eded1aca970bc984e1ccf81..b616870efe197eaa0b1c974c2d13d4cfe7faf4a1 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for stat functions and checktime
 
-source check.vim
-
 func CheckFileTime(doSleep)
   let fnames = ['Xtest1.tmp', 'Xtest2.tmp', 'Xtest3.tmp']
   let times = []
index f2204db57e16c08bc6c167a2fb7f7634dbbc0cf2..7883af34239c861ab90405bcfc79e28e52797cfa 100644 (file)
@@ -3,8 +3,6 @@
 " Not tested yet:
 "   %N
 
-source view_util.vim
-source check.vim
 source screendump.vim
 
 func SetUp()
index 21527db5f5994a8adf2c62f915761afe2ab6a7a1..ef352b9638dde11459ffad2642d8bc3e88a2a03b 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for the substitute (:s) command
 
-source shared.vim
-source check.vim
 source screendump.vim
 
 " NOTE: This needs to be the first test to be
index 5175c0f639e6136017df4db689ab74d1feaa90a2..ae05dd21f29798093123e0b51c42bb8a101d4de1 100644 (file)
@@ -1,9 +1,5 @@
 " Test :suspend
 
-source check.vim
-source term_util.vim
-source shared.vim
-
 func CheckSuspended(buf, fileExists)
   call WaitForAssert({-> assert_match('[$#] $', term_getline(a:buf, '.'))})
 
index 4ba7bb6c1699b33a27876d081010ffaedc624567..b599bf76ee5201642f7e7ab2cc3e7ae38cdf7be0 100644 (file)
@@ -1,9 +1,5 @@
 " Tests for the swap feature
 
-source check.vim
-source shared.vim
-source term_util.vim
-
 func s:swapname()
   return trim(execute('swapname'))
 endfunc
index d152ec5c3fc1f98de145a677bf880f6fdb226897..6c56ceba164970d1645cb1d23849504c1c183261 100644 (file)
@@ -1,9 +1,7 @@
 " Test for syntax and syntax iskeyword option
 
-source check.vim
 CheckFeature syntax
 
-source view_util.vim
 source screendump.vim
 
 func GetSyntaxItem(pat)
index 879eaed3be9eaf0d89d1c9e96c16f0c6d3f97819..4e0c349ec83b857ddfc27294970b34317ad6d724 100644 (file)
@@ -1,8 +1,5 @@
 " Tests for system() and systemlist()
 
-source shared.vim
-source check.vim
-
 func Test_System()
   if !has('win32')
     call assert_equal("123\n", system('echo 123'))
index 3cba2aab47278a68b920415118b75ed9e2d3b343..d00626a6cb7d3cde82cc54badb86361b8ff83d58 100644 (file)
@@ -1,8 +1,5 @@
 " Test for tabline
 
-source shared.vim
-source view_util.vim
-source check.vim
 source screendump.vim
 
 func TablineWithCaughtError()
index 0e219e20bdda77e1b38a507f8e1c692ad02f388e..a99753ef1eba631dd481d987924563ab68cbac17 100644 (file)
@@ -1,7 +1,6 @@
 " Tests for tabpage
 
 source screendump.vim
-source check.vim
 
 function Test_tabpage()
   CheckFeature quickfix
index 4d2fca140dc1f30259fc53160f5d9202edd0c7f1..257c38da83da7993e60a449824b31ecf2dff21bd 100644 (file)
@@ -1,6 +1,5 @@
 " Tests for tabpanel
 
-source check.vim
 source screendump.vim
 CheckFeature tabpanel
 
index 96ed1094701056aa8d3d0db3a030ae6ed015b3a7..cceaf45c22022be64c783da8a85d16970af422bc 100644 (file)
@@ -1,7 +1,6 @@
 " Test 'tagfunc'
 
 import './vim9.vim' as v9
-source check.vim
 source screendump.vim
 
 func TagFunc(pat, flag, info)
index f53d9b88f776368611cfe8d6bddffde8806431c9..1947ab2d3671b322918e1fb28a53057958e1eded 100644 (file)
@@ -1,6 +1,5 @@
 " Tests for tagjump (tags and special searches)
 
-source check.vim
 source screendump.vim
 
 " SEGV occurs in older versions.  (At least 7.4.1748 or older)
index c5c7df2a9c7fd82846eccf2cdb6b470e2ada6242..5a946042be8491de96d062840aeebf154542e604 100644 (file)
@@ -1,8 +1,5 @@
 " test taglist(), tagfiles() functions and :tags command
 
-source check.vim
-source view_util.vim
-
 func Test_taglist()
   call writefile([
        \ "FFoo\tXfoo\t1",
index 68a6d63a50466ad97f356a38c181b2ed87c7e422..a60c909859fe5527cb7535ddc82815c86784e494 100644 (file)
@@ -1,6 +1,5 @@
 " Tests for the Tcl interface.
 
-source check.vim
 CheckFeature tcl
 
 " Helper function as there is no builtin tcleval() function similar
index 8fe77b0cf697794172ae76d9941f11be68d3611c..e44ca466a07732f75bc03e573bce64e2b8229cdc 100644 (file)
@@ -1,14 +1,10 @@
 " Tests for decoding escape sequences sent by the terminal.
 
 " This only works for Unix in a terminal
-source check.vim
 CheckNotGui
 CheckUnix
 
-source shared.vim
 source mouse.vim
-source view_util.vim
-source term_util.vim
 
 func s:TermGuiColorsTest()
   CheckNotMSWindows
index a45ff847931dca649ef6a06cb04275c247fa7e3e..86b7341a2f692de17ed29b0e593ff054bf287e46 100644 (file)
@@ -1,8 +1,6 @@
 " Test for setting 'encoding' to something else than the terminal uses, then
 " setting 'termencoding' to make it work.
 
-source check.vim
-
 " This only works with "iconv".
 CheckFeature iconv
 
index 7476b49959893f41d97b3102387899430db50d25..7e088b209209f60073af0a5942a07292a600f3c3 100644 (file)
@@ -2,13 +2,10 @@
 " This is split in two, because it can take a lot of time.
 " See test_terminal2.vim and test_terminal3.vim for further tests.
 
-source check.vim
 CheckFeature terminal
 
-source shared.vim
 source screendump.vim
 source mouse.vim
-source term_util.vim
 
 let s:python = PythonProg()
 let $PROMPT_COMMAND=''
index 195d0baa67134e9dbd3ead1b1559863301d4530b..996cd9818044a64cb56766cdb8c0310a28dd3643 100644 (file)
@@ -2,13 +2,10 @@
 " This is split in two, because it can take a lot of time.
 " See test_terminal.vim and test_terminal3.vim for further tests.
 
-source check.vim
 CheckFeature terminal
 
-source shared.vim
 source screendump.vim
 source mouse.vim
-source term_util.vim
 
 let $PROMPT_COMMAND=''
 
index 7a2ecdbc1b79a9c3a51f9da59c6c41526f002215..e86fdf09af9f2be76aba9eb902effc5079ed4298 100644 (file)
@@ -2,13 +2,10 @@
 " This is split in two, because it can take a lot of time.
 " See test_terminal.vim and test_terminal2.vim for further tests.
 
-source check.vim
 CheckFeature terminal
 
-source shared.vim
 source screendump.vim
 source mouse.vim
-source term_util.vim
 
 import './vim9.vim' as v9
 
index e430bfe4395f27a3e544b1361a3677e137d7c0c4..0ee00a1dc61c9cbbc63e0eab6b036925eff5126e 100644 (file)
@@ -2,7 +2,6 @@
 " 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.
 
-source check.vim
 CheckFeature terminal
 
 source shared.vim
index e31ea220539daecf68b8404eff71246eeb585462..f4dedfacb1414ebe4226dd3db7e5fe3a3fef9a2d 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for the various 'formatoptions' settings
 
-source check.vim
-
 func Test_text_format()
   enew!
 
index 2622b06a4a6800487dd97ec99c5a9bf821158f8e..320cd169b639f77ea32d0b8e90a2aeddec901c45 100644 (file)
@@ -1,7 +1,5 @@
 " Test for textobjects
 
-source check.vim
-
 func CpoM(line, useM, expected)
   new
 
index bcf83cab8fb2a0163396d31d0899dde14c919696..856a526ae6715ddfe5c355f43eab6692b79970a5 100644 (file)
@@ -1,7 +1,6 @@
 " Tests for defining text property types and adding text properties to the
 " buffer.
 
-source check.vim
 CheckFeature textprop
 
 source screendump.vim
index d2f621c26d3d0957fb4325a1b672bf1807a090f3..0f9fddbbbb3bb19f99e50929ed8691ffe03f4b4d 100644 (file)
@@ -1,11 +1,8 @@
 " Test for timers
 
-source check.vim
 CheckFeature timers
 
 source screendump.vim
-source shared.vim
-source term_util.vim
 
 func SetUp()
   " The tests here use timers, thus are sensitive to timing.
index 2b27ba72a12fed4a654836460b63861952d3b526..03e02880e5544de8e17ec168d50fe535ece475b7 100644 (file)
@@ -1,7 +1,5 @@
 " Test behavior of boolean-like values.
 
-source check.vim
-
 " Test what is explained at ":help TRUE" and ":help FALSE".
 func Test_if()
   if v:false
index 31ac6f89f7d45d2ce089a03a967e272820578647..1fde607567fc9fbdebb2e1c02c3258837ee40579 100644 (file)
@@ -1,8 +1,6 @@
 " Test try-catch-finally exception handling
 " Most of this was formerly in test49.
 
-source check.vim
-source shared.vim
 import './vim9.vim' as v9
 
 "-------------------------------------------------------------------------------
index af6cefebe5f71c16b336b6b56d51630b76d91978..b4506cb09e2ca16c02e75e777590adc6f111c3b1 100644 (file)
@@ -3,7 +3,6 @@
 " undo-able pieces.  Do that by setting 'undolevels'.
 " Also tests :earlier and :later.
 
-source check.vim
 source screendump.vim
 
 func Test_undotree()
index a60fd49b1623eb0274216033e5048afa69cc987e..9029ea58f5b5d7261889d8b0830dceb0d1623411 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for the ":uniq" command.
 
-source check.vim
-
 " Tests for the ":uniq" command.
 func Test_uniq_cmd()
   let tests = [
index b9f6a40e80825c227f76489be65620d62ce520df..8a32afe320bf0e7e881bcdf2e4b4c24abbeef635 100644 (file)
@@ -3,8 +3,6 @@
 " Also test that a builtin function cannot be replaced.
 " Also test for regression when calling arbitrary expression.
 
-source check.vim
-source shared.vim
 import './vim9.vim' as v9
 
 func Table(title, ...)
index d950308ee0ec12a9e31ec203028c1527dba5df0d..e61a9cebfa64b1e261a96f6508a7aabc564f6e40 100644 (file)
@@ -2,7 +2,6 @@
 
 import './vim9.vim' as v9
 
-source check.vim
 source screendump.vim
 
 " Test for <mods> in user defined commands
index 61ea0d02b49f24a2ca1d5d540364eef1871ad3f6..9c2a7496e77ba8d501e16a14c6b3e1d6d8f844bc 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for Unicode manipulations
 
-source check.vim
-source view_util.vim
 source screendump.vim
 
 " Visual block Insert adjusts for multi-byte char
index bae00dd057878fb64c513ffb717e4e2947e5450b..28b95ab69ac7d686429f82c593fd1d3f20fe286a 100644 (file)
@@ -1,10 +1,7 @@
 " Test for variable tabstops
 
-source check.vim
 CheckFeature vartabs
 
-source view_util.vim
-
 func s:compare_lines(expect, actual)
   call assert_equal(join(a:expect, "\n"), join(a:actual, "\n"))
 endfunc
index 958c126a42f9ac28150548c83a3e968bb47f7e22..40e5192b6381e4fe05bed864f407cf9456aacf28 100644 (file)
@@ -1,8 +1,5 @@
 " Test :version Ex command
 
-so check.vim
-so shared.vim
-
 func Test_version()
   " version should always return the same string.
   let v1 = execute('version')
index 3b0838430c85dd509f5f93933e86a09458b94fcd..dde750b8b6291c6290342afbb135754522358d3b 100644 (file)
@@ -1,8 +1,6 @@
 " Test Vim9 assignments
 
-source check.vim
 import './vim9.vim' as v9
-source term_util.vim
 
 let s:appendToMe = 'xxx'
 let s:addToMe = 111
index 2ad4a85038f25508bfab14f05a8cfd0476ec1bb0..a653c7cb8fcfeeba9137887955100c936c542236 100644 (file)
@@ -1,6 +1,5 @@
 " Test using builtin functions in the Vim9 script language.
 
-source check.vim
 source screendump.vim
 import './vim9.vim' as v9
 
index 3ba467b238a38b4b9e098f1117bbabda6c6dcbbe..e08c40c76b15f9f4e257290737e6673672ad4130 100644 (file)
@@ -1,6 +1,5 @@
 " Test Vim9 classes
 
-source check.vim
 import './vim9.vim' as v9
 
 def Test_class_basic()
index d38e1c89683b0a345b3f75af559e20e05a2afd00..0d525b481776a843b50f1dfcaf2efa95a9294a86 100644 (file)
@@ -1,9 +1,6 @@
 " Test commands that are not compiled in a :def function
 
-source check.vim
 import './vim9.vim' as v9
-source term_util.vim
-source view_util.vim
 
 def Test_vim9cmd()
   var lines =<< trim END
index e98ab75afae6505e928158be7bc4a42153b0b6c2..f1059fbb81748244a23c7cadc4780f1d126d9ded 100644 (file)
@@ -1,6 +1,5 @@
 " Test the :disassemble command, and compilation as a side effect
 
-source check.vim
 import './vim9.vim' as v9
 
 func s:NotCompiled()
index de26259d49fe0f3a99df1729983bd3f0e14111e5..0ce7dad439c016e01b1a04e79cad8fb396a9f98e 100644 (file)
@@ -1,6 +1,5 @@
 " Test Vim9 enums
 
-source check.vim
 import './vim9.vim' as v9
 
 " Test for parsing an enum definition
index b0a623aad377a2fc6f1f9701afcbe1936cf23f4e..22d66810f45ac3b6b2673c894b03a2553575445c 100644 (file)
@@ -1,6 +1,5 @@
 " Tests for Vim9 script expressions
 
-source check.vim
 import './vim9.vim' as v9
 
 let g:cond = v:false
index 9d4337023592c8dd592dc4a27aac1ad5549b1259..62d6f97ba92b3ff08476a5ee19a1f7a89eac88ae 100644 (file)
@@ -1,8 +1,6 @@
 " Test for Vim9 script with failures, causing memory leaks to be reported.
 " The leaks happen after a fork() and can be ignored.
 
-source check.vim
-
 def Test_assignment()
   if !has('channel')
     CheckFeature channel
index 1d5de42ffbc1c428a8c86958ac2175efc9f6d273..42b8b4f2bce0c6aeb20e8dac501582d2300750fc 100644 (file)
@@ -1,8 +1,5 @@
 " Test various aspects of the Vim9 script language.
 
-source check.vim
-source term_util.vim
-source view_util.vim
 import './vim9.vim' as v9
 source screendump.vim
 
index 1c8136a0db32a7b6dceb533f2f5eb31be299653b..0eeaa7f435c4e43c12edc67d908e954aef4270e5 100644 (file)
@@ -1,8 +1,6 @@
 " Test import/export of the Vim9 script language.
 " Also the autoload mechanism.
 
-source check.vim
-source term_util.vim
 import './vim9.vim' as v9
 
 let s:export_script_lines =<< trim END
index 697b368035f5b468fa2cd8c9d91bd447e6e80e97..9817dd8600f08a7fd0ff16109e86c9633249aa3c 100644 (file)
@@ -1,5 +1,4 @@
 
-source check.vim
 import './vim9.vim' as v9
 CheckFeature python3
 
index d0bedf2a6e5f220a5cfe7bc12b9348d348078a28..52d64c68931c5b88ea6a7eae0b9802107b86c306 100644 (file)
@@ -1,10 +1,7 @@
 " Test various aspects of the Vim9 script language.
 
-source check.vim
-source term_util.vim
 import './vim9.vim' as v9
 source screendump.vim
-source shared.vim
 
 def Test_vim9script_feature()
   # example from the help, here the feature is always present
index 6cc0470c240f52d20b0e93eec4e1243e349972c7..9d7bd89275630bcd18a9bfb3758524acfbea91c4 100644 (file)
@@ -1,6 +1,5 @@
 " Test Vim9 type aliases
 
-source check.vim
 import './vim9.vim' as v9
 
 " Test for :type command to create type aliases
index 2bbca3e5d3bf260703ee1acef538008ac1373b0f..e3767e9a2b9af094564b45dc0acdd945db89c85b 100644 (file)
@@ -1,9 +1,5 @@
 " Test for reading and writing .viminfo
 
-source check.vim
-source term_util.vim
-source shared.vim
-
 func Test_viminfo_read_and_write()
   " First clear 'history', so that "hislen" is zero.  Then set it again,
   " simulating Vim starting up.
index 16dd70c9d20fbc81cd7e04cecd44cab6c69510a1..e1000fbee453482d2faf7e74ab212fd076195e44 100644 (file)
@@ -2,8 +2,6 @@
 " Most of this was formerly in test49.vim (developed by Servatius Brandt
 " <Servatius.Brandt@fujitsu-siemens.com>)
 
-source check.vim
-source shared.vim
 source script_util.vim
 
 "-------------------------------------------------------------------------------
index 2665faa451d7f34b5da792a2e9e2f5754662a7d4..df9fe99e9bbfbaa2d9ad13f2b19d5532c3aea19f 100644 (file)
@@ -1,7 +1,5 @@
 " Tests for various Visual modes.
 
-source shared.vim
-source check.vim
 source screendump.vim
 import './vim9.vim' as v9
 
index 5dd6065fe01e62a66f0152d77b895db7b14a6474..e72a37fa6315f84c23c64f238cef7a6ee8465d14 100644 (file)
@@ -1,5 +1,3 @@
-source check.vim
-source shared.vim
 source window_manager.vim
 
 CheckFeature wayland
index 954c3e07d97dba98e094bed9c855a8795175e687..f6185f80265d446c61bda35b7763cb963b678bd7 100644 (file)
@@ -1,9 +1,7 @@
 " Test WinBar
 
-source check.vim
 CheckFeature menu
 
-source shared.vim
 source screendump.vim
 
 func Test_add_remove_menu()
index 4e02f0098340f17527bf9750b934e40f651cc900..bc1aaa9fab169b539675462aebe6c173e5ae4f2f 100644 (file)
@@ -1,6 +1,5 @@
 " Tests for window cmd (:wincmd, :split, :vsplit, :resize and etc...)
 
-source check.vim
 source screendump.vim
 
 func Test_window_cmd_ls0_with_split()
index 396a49b55f05b3353ffa66f3b0fb5080f159555d..5401b5f37cf7f7b3baa05ea168e962049ef720fa 100644 (file)
@@ -1,7 +1,5 @@
 " Test using the window ID.
 
-source check.vim
-
 func Test_win_getid()
   edit one
   let id1 = win_getid()
index ceed25a4d4c0a5097d2265d8f31cca8070d43532..4bacd3aab8c7d881ae594ee7e629975a5733f73d 100644 (file)
@@ -1,6 +1,5 @@
 " Test for $HOME on Windows.
 
-source check.vim
 CheckMSWindows
 
 let s:env = {}
index 2d4eaf675eb08fb05a8e4b70ba8d09444e78e48a..a553799d3674fb32cf9cfc9299b5605c8bd19442 100644 (file)
@@ -1,8 +1,5 @@
 " Test 'winfixbuf'
 
-source check.vim
-source shared.vim
-
 " Find the number of open windows in the current tab
 func s:get_windows_count()
   return tabpagewinnr(tabpagenr(), '$')
index 600c36d9b2b552fb3bb22950a64ecc45dad18d9e..51c55d2c7f812d3a8151463618fe0fab1e35fb5a 100644 (file)
@@ -1,8 +1,5 @@
 " Tests for the writefile() function and some :write commands.
 
-source check.vim
-source term_util.vim
-
 func Test_writefile()
   let f = tempname()
   call writefile(["over", "written"], f, "bD")
index b7abd04e6d831f025d91d406fe67081a1ed2688e..218714de3b1e3dbc5e6f09d942f9dc1fa36b5461 100644 (file)
@@ -1,8 +1,5 @@
 " Tests for the XDG feature
 
-source check.vim
-source shared.vim
-
 func s:get_rcs()
   let rcs = {
         \ 'file1': { 'path': '~/.vimrc', 'dir': expand('~/.vim/') },
index 7c3011f751a1b55d58510db6f29681b2d9e910f1..b2ef4e5ca2576fc5fa85f1c0dc8bac60574b5726 100644 (file)
@@ -1,6 +1,5 @@
 " Test for the xxd command
 
-source check.vim
 source screendump.vim
 
 if empty($XXD) && executable('..\xxd\xxd.exe')
index 36fe34058367c61a997c642c02c43190d1f8026a..7a3c0c0d082e39a2ffbea7c1a205269d25d013c5 100644 (file)
@@ -1,6 +1,3 @@
-source check.vim
-source shared.vim
-
 CheckFeature job
 CheckUnix
 
index 0ae79834a687028b051f6ee5f1ca280331baaf4e..470104c1d6d5dfb758a5302cd89cf0a3baea5a80 100644 (file)
@@ -719,6 +719,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1524,
 /**/
     1523,
 /**/