From 0a98765b44927e689af20a8d2484bec2ac17900d Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 11 Aug 2019 13:19:59 +0200 Subject: test_source.vim: move Test_source_sandbox --- src/nvim/testdir/test_source.vim | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/nvim/testdir/test_source.vim b/src/nvim/testdir/test_source.vim index 697b552df4..5166bafb15 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\"], '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,12 @@ func Test_source_cmd() au! SourcePre au! SourcePost endfunc + +func Test_source_sandbox() + new + call writefile(["Ohello\"], 'Xsourcehello') + source! Xsourcehello | echo + call assert_equal('hello', getline(1)) + call assert_fails('sandbox source! Xsourcehello', 'E48:') + bwipe! +endfunc -- cgit