diff src/testdir/test_vim9_cmd.vim @ 23197:4ba101403fa2 v8.2.2144

patch 8.2.2144: Vim9: some corner cases not tested Commit: https://github.com/vim/vim/commit/025cb1ca8605055383c53bf2c823d7093cf29b82 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 14 18:31:27 2020 +0100 patch 8.2.2144: Vim9: some corner cases not tested Problem: Vim9: some corner cases not tested. Solution: Add a few tests.
author Bram Moolenaar <Bram@vim.org>
date Mon, 14 Dec 2020 18:45:04 +0100
parents 6aa8ddf7a3fa
children d998222d314d
line wrap: on
line diff
--- a/src/testdir/test_vim9_cmd.vim
+++ b/src/testdir/test_vim9_cmd.vim
@@ -20,6 +20,9 @@ def Test_edit_wildcards()
 
   edit X`=filename`xx`=filenr`yy
   assert_equal('XXtestxx77yy', bufname())
+
+  CheckDefFailure(['edit `=xxx`'], 'E1001:')
+  CheckDefFailure(['edit `="foo"'], 'E1083:')
 enddef
 
 def Test_hardcopy_wildcards()
@@ -626,6 +629,20 @@ def Test_put_command()
   assert_equal('aaa', getline(4))
 
   bwipe!
+
+  CheckDefFailure(['put =xxx'], 'E1001:')
+enddef
+
+def Test_put_with_linebreak()
+  new
+  var lines =<< trim END
+    vim9script
+    pu =split('abc', '\zs')
+            ->join()
+  END
+  CheckScriptSuccess(lines)
+  getline(2)->assert_equal('a b c')
+  bwipe!
 enddef
 
 def Test_command_star_range()