diff src/testdir/test_vim9_func.vim @ 22264:e0a4d029cb87 v8.2.1681

patch 8.2.1681: Vim9: unnessary :call commands in tests Commit: https://github.com/vim/vim/commit/08052228a72074cdb0165e65f01b2fa8fce867ea Author: Bram Moolenaar <Bram@vim.org> Date: Mon Sep 14 17:04:31 2020 +0200 patch 8.2.1681: Vim9: unnessary :call commands in tests Problem: Vim9: unnessary :call commands in tests. Solution: Remove the commands. (issue https://github.com/vim/vim/issues/6936)
author Bram Moolenaar <Bram@vim.org>
date Mon, 14 Sep 2020 17:15:04 +0200
parents 3d0632b260fd
children 6b385c2b9ff5
line wrap: on
line diff
--- a/src/testdir/test_vim9_func.vim
+++ b/src/testdir/test_vim9_func.vim
@@ -279,7 +279,7 @@ def Test_call_wrong_args()
     enddef
     Func([])
   END
-  call CheckScriptFailure(lines, 'E1013: argument 1: type mismatch, expected string but got list<unknown>', 5)
+  CheckScriptFailure(lines, 'E1013: argument 1: type mismatch, expected string but got list<unknown>', 5)
 enddef
 
 " Default arg and varargs
@@ -1099,7 +1099,7 @@ def Test_error_reporting()
     enddef
     defcompile
   END
-  call writefile(lines, 'Xdef')
+  writefile(lines, 'Xdef')
   try
     source Xdef
     assert_report('should have failed')
@@ -1119,7 +1119,7 @@ def Test_error_reporting()
     enddef
     defcompile
   END
-  call writefile(lines, 'Xdef')
+  writefile(lines, 'Xdef')
   try
     source Xdef
     assert_report('should have failed')
@@ -1138,7 +1138,7 @@ def Test_error_reporting()
     defcompile
     Func()
   END
-  call writefile(lines, 'Xdef')
+  writefile(lines, 'Xdef')
   try
     source Xdef
     assert_report('should have failed')
@@ -1146,7 +1146,7 @@ def Test_error_reporting()
     v:throwpoint->assert_match('_Func, line 3$')
   endtry
 
-  call delete('Xdef')
+  delete('Xdef')
 enddef
 
 def Test_deleted_function()