comparison src/testdir/test_gui.vim @ 25356:1cde96e768e4 v8.2.3215

patch 8.2.3215: Vim9: argument types are not checked at compile time Commit: https://github.com/vim/vim/commit/5bca906b307728fa74a112914dc55b424d512d39 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Sat Jul 24 21:33:26 2021 +0200 patch 8.2.3215: Vim9: argument types are not checked at compile time Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks. Sort the argument lists. (Yegappan Lakshmanan, closes #8626)
author Bram Moolenaar <Bram@vim.org>
date Sat, 24 Jul 2021 21:45:04 +0200
parents 4d3c68196d05
children a5a772dace5b
comparison
equal deleted inserted replaced
25355:efef27c0f8a0 25356:1cde96e768e4
1170 endfunc 1170 endfunc
1171 1171
1172 func Test_gui_drop_files() 1172 func Test_gui_drop_files()
1173 CheckFeature drop_file 1173 CheckFeature drop_file
1174 1174
1175 call assert_fails('call test_gui_drop_files(1, 1, 1, 0)', 'E474:') 1175 call assert_fails('call test_gui_drop_files(1, 1, 1, 0)', 'E1211:')
1176 call assert_fails('call test_gui_drop_files(["x"], "", 1, 0)', 'E474:') 1176 call assert_fails('call test_gui_drop_files(["x"], "", 1, 0)', 'E1210:')
1177 call assert_fails('call test_gui_drop_files(["x"], 1, "", 0)', 'E474:') 1177 call assert_fails('call test_gui_drop_files(["x"], 1, "", 0)', 'E1210:')
1178 call assert_fails('call test_gui_drop_files(["x"], 1, 1, "")', 'E474:') 1178 call assert_fails('call test_gui_drop_files(["x"], 1, 1, "")', 'E1210:')
1179 1179
1180 %bw! 1180 %bw!
1181 %argdelete 1181 %argdelete
1182 call test_gui_drop_files([], 1, 1, 0) 1182 call test_gui_drop_files([], 1, 1, 0)
1183 call assert_equal([], argv()) 1183 call assert_equal([], argv())