diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2023-11-29 21:52:58 +0000 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2023-11-29 21:52:58 +0000 |
commit | 931bffbda3668ddc609fc1da8f9eb576b170aa52 (patch) | |
tree | d8c1843a95da5ea0bb4acc09f7e37843d9995c86 /src/nvim/testdir/test_scriptnames.vim | |
parent | 142d9041391780ac15b89886a54015fdc5c73995 (diff) | |
parent | 4a8bf24ac690004aedf5540fa440e788459e5e34 (diff) | |
download | rneovim-userreg.tar.gz rneovim-userreg.tar.bz2 rneovim-userreg.zip |
Merge remote-tracking branch 'upstream/master' into userreguserreg
Diffstat (limited to 'src/nvim/testdir/test_scriptnames.vim')
-rw-r--r-- | src/nvim/testdir/test_scriptnames.vim | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/nvim/testdir/test_scriptnames.vim b/src/nvim/testdir/test_scriptnames.vim deleted file mode 100644 index 44ec146666..0000000000 --- a/src/nvim/testdir/test_scriptnames.vim +++ /dev/null @@ -1,32 +0,0 @@ -" Test for :scriptnames - -func Test_scriptnames() - call writefile(['let did_load_script = 123'], 'Xscripting') - source Xscripting - call assert_equal(123, g:did_load_script) - - let scripts = split(execute('scriptnames'), "\n") - let last = scripts[-1] - call assert_match('\<Xscripting\>', last) - let lastnr = substitute(last, '\D*\(\d\+\):.*', '\1', '') - exe 'script ' . lastnr - call assert_equal('Xscripting', expand('%:t')) - - call assert_fails('script ' . (lastnr + 1), 'E474:') - call assert_fails('script 0', 'E939:') - - new - call setline(1, 'nothing') - call assert_fails('script ' . lastnr, 'E37:') - exe 'script! ' . lastnr - call assert_equal('Xscripting', expand('%:t')) - - bwipe - call delete('Xscripting') - - let msgs = execute('messages') - scriptnames - call assert_equal(msgs, execute('messages')) -endfunc - -" vim: shiftwidth=2 sts=2 expandtab |