diff options
Diffstat (limited to 'src/testdir/test_vim9_import.vim')
-rw-r--r-- | src/testdir/test_vim9_import.vim | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/testdir/test_vim9_import.vim b/src/testdir/test_vim9_import.vim index 1e8851e92d..652e4d36b6 100644 --- a/src/testdir/test_vim9_import.vim +++ b/src/testdir/test_vim9_import.vim @@ -500,7 +500,16 @@ def Test_import_fails() v9.CheckScriptFailure(lines, 'E1262:') delete('Xthat.vim') - + + lines =<< trim END + vim9script + export var item = 'hello' + import './Xyourself.vim' + END + writefile(lines, 'Xyourself.vim') + assert_fails('source Xyourself.vim', 'E1088:') + delete('Xyourself.vim') + mkdir('Ximport') writefile(['vim9script'], 'Ximport/.vim') |