@@ -204,14 +204,41 @@ def Test_call_call()
204204 l - >assert_equal ([1 , 2 , 3 ])
205205enddef
206206
207+ def Test_ch_logfile ()
208+ assert_fails (' ch_logfile(true)' , ' E1174' )
209+ assert_fails (' ch_logfile("foo", true)' , ' E1174' )
210+ enddef
211+
207212def Test_char2nr ()
208213 char2nr (' あ' , true)- >assert_equal (12354 )
214+
215+ assert_fails (' char2nr(true)' , ' E1174' )
216+ enddef
217+
218+ def Test_charclass ()
219+ assert_fails (' charclass(true)' , ' E1174' )
220+ enddef
221+
222+ def Test_chdir ()
223+ assert_fails (' chdir(true)' , ' E1174' )
209224enddef
210225
211226def Test_col ()
212227 new
213228 setline (1 , ' asdf' )
214229 col ([1 , ' $' ])- >assert_equal (5 )
230+
231+ assert_fails (' col(true)' , ' E1174' )
232+ enddef
233+
234+ def Test_confirm ()
235+ if ! has (' dialog_con' ) && ! has (' dialog_gui' )
236+ CheckFeature dialog_con
237+ endif
238+
239+ assert_fails (' call confirm(true)' , ' E1174' )
240+ assert_fails (' call confirm("yes", true)' , ' E1174' )
241+ assert_fails (' call confirm("yes", "maybe", 2, true)' , ' E1174' )
215242enddef
216243
217244def Test_copy_return_type ()
@@ -675,6 +702,10 @@ def Test_keys_return_type()
675702 var - >assert_equal ([' a' , ' b' ])
676703enddef
677704
705+ def Test_line ()
706+ assert_fails (' line(true)' , ' E1174' )
707+ enddef
708+
678709def Test_list2str_str2list_utf8 ()
679710 var s = " \u3042\u3044 "
680711 var l = [0x3042 , 0x3044 ]
0 commit comments