diff options
| author | Daniel Hahler <git@thequod.de> | 2019-08-11 20:35:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-11 20:35:31 +0200 |
| commit | 48dc6344d665a7537fb000ec64ab95a37faa07f3 (patch) | |
| tree | 6bb27fe516356fdf28cfc314708d104e62b57f78 /src/nvim/testdir/test_source.vim | |
| parent | 6b028ec5f29c709fc68b01e98bb619bb4a48d504 (diff) | |
| parent | ef1c10017422760b5322435dea7c4c6e11929c52 (diff) | |
| download | rneovim-48dc6344d665a7537fb000ec64ab95a37faa07f3.tar.gz rneovim-48dc6344d665a7537fb000ec64ab95a37faa07f3.tar.bz2 rneovim-48dc6344d665a7537fb000ec64ab95a37faa07f3.zip | |
Merge pull request #10745 from blueyed/vim-8.1.1461
vim-patch:8.1.1461 / vim-patch:8.1.1462
Diffstat (limited to 'src/nvim/testdir/test_source.vim')
| -rw-r--r-- | src/nvim/testdir/test_source.vim | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/nvim/testdir/test_source.vim b/src/nvim/testdir/test_source.vim index 697b552df4..09baec0b7d 100644 --- a/src/nvim/testdir/test_source.vim +++ b/src/nvim/testdir/test_source.vim @@ -1,14 +1,5 @@ " Tests for the :source command. -func Test_source_sandbox() - new - call writefile(["Ohello\<Esc>"], 'Xsourcehello') - source! Xsourcehello | echo - call assert_equal('hello', getline(1)) - call assert_fails('sandbox source! Xsourcehello', 'E48:') - bwipe! -endfunc - func Test_source_autocmd() call writefile([ \ 'let did_source = 1', @@ -45,3 +36,13 @@ func Test_source_cmd() au! SourcePre au! SourcePost endfunc + +func Test_source_sandbox() + new + call writefile(["Ohello\<Esc>"], 'Xsourcehello') + source! Xsourcehello | echo + call assert_equal('hello', getline(1)) + call assert_fails('sandbox source! Xsourcehello', 'E48:') + bwipe! + call delete('Xsourcehello') +endfunc |