diff options
| author | James McCoy <jamessan@jamessan.com> | 2019-06-24 12:08:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-24 12:08:57 -0400 |
| commit | 8c7e41f596e60031099c36c915a3f610b893d60e (patch) | |
| tree | fe0fe669049839b8a70f59878e0ee4152e1a3c7a /src/nvim/testdir/test_source.vim | |
| parent | 8d4a655ace746c9ad5050b2c37dc5133dcb74fc4 (diff) | |
| parent | 6cb44602075ccfe045e2864513978e2f5a58fe87 (diff) | |
| download | rneovim-8c7e41f596e60031099c36c915a3f610b893d60e.tar.gz rneovim-8c7e41f596e60031099c36c915a3f610b893d60e.tar.bz2 rneovim-8c7e41f596e60031099c36c915a3f610b893d60e.zip | |
[RFC] vim-patch:8.1.1365,8.1.1366,8.1.1367,8.1.1368,8.1.1382,8… (#10309)
[RFC] vim-patch:8.1.1365,8.1.1366,8.1.1367,8.1.1368,8.1.1382,8.1.1401
Diffstat (limited to 'src/nvim/testdir/test_source.vim')
| -rw-r--r-- | src/nvim/testdir/test_source.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_source.vim b/src/nvim/testdir/test_source.vim new file mode 100644 index 0000000000..42ac0c4d0f --- /dev/null +++ b/src/nvim/testdir/test_source.vim @@ -0,0 +1,10 @@ +" 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 |