aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-08-11 13:19:59 +0200
committerDaniel Hahler <git@thequod.de>2019-08-11 13:23:30 +0200
commit0a98765b44927e689af20a8d2484bec2ac17900d (patch)
tree2b25ee3365cd0d24ea55d30881dd8202c1fa61f3
parent7d664837e1a954c6b4aabbbf62ecc55c58454f06 (diff)
downloadrneovim-0a98765b44927e689af20a8d2484bec2ac17900d.tar.gz
rneovim-0a98765b44927e689af20a8d2484bec2ac17900d.tar.bz2
rneovim-0a98765b44927e689af20a8d2484bec2ac17900d.zip
test_source.vim: move Test_source_sandbox
-rw-r--r--src/nvim/testdir/test_source.vim18
1 files changed, 9 insertions, 9 deletions
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\<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,12 @@ 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!
+endfunc