File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ def Test_edit_wildcards()
2020
2121 edit X`= filename`xx`= filenr`yy
2222 assert_equal (' XXtestxx77yy' , bufname ())
23+
24+ CheckDefFailure ([' edit `=xxx`' ], ' E1001:' )
25+ CheckDefFailure ([' edit `="foo"' ], ' E1083:' )
2326enddef
2427
2528def Test_hardcopy_wildcards ()
@@ -626,6 +629,20 @@ def Test_put_command()
626629 assert_equal (' aaa' , getline (4 ))
627630
628631 bwipe!
632+
633+ CheckDefFailure ([' put =xxx' ], ' E1001:' )
634+ enddef
635+
636+ def Test_put_with_linebreak ()
637+ new
638+ var lines = << trim END
639+ vim9script
640+ pu = split (' abc' , ' \zs' )
641+ - >join ()
642+ END
643+ CheckScriptSuccess (lines )
644+ getline (2 )- >assert_equal (' a b c' )
645+ bwipe!
629646enddef
630647
631648def Test_command_star_range ()
Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ def Test_range_only()
2323 list
2424 assert_equal (' three$' , Screenline (&lines ))
2525 bwipe!
26+
27+ # won't generate anything
28+ if false
29+ :123
30+ endif
2631enddef
2732
2833let g: alist = [7 ]
@@ -1890,6 +1895,9 @@ def Test_for_loop()
18901895enddef
18911896
18921897def Test_for_loop_fails ()
1898+ CheckDefFailure ([' for ' ], ' E1097:' )
1899+ CheckDefFailure ([' for x' ], ' E1097:' )
1900+ CheckDefFailure ([' for x in' ], ' E1097:' )
18931901 CheckDefFailure ([' for # in range(5)' ], ' E690:' )
18941902 CheckDefFailure ([' for i In range(5)' ], ' E690:' )
18951903 CheckDefFailure ([' var x = 5' , ' for x in range(5)' ], ' E1017:' )
@@ -3054,18 +3062,6 @@ def Test_no_unknown_error_after_error()
30543062 delete (' Xdef' )
30553063enddef
30563064
3057- def Test_put_with_linebreak ()
3058- new
3059- var lines = << trim END
3060- vim9script
3061- pu = split (' abc' , ' \zs' )
3062- - >join ()
3063- END
3064- CheckScriptSuccess (lines )
3065- getline (2 )- >assert_equal (' a b c' )
3066- bwipe!
3067- enddef
3068-
30693065def InvokeNormal ()
30703066 exe " norm! :m+1\r "
30713067enddef
Original file line number Diff line number Diff line change @@ -750,6 +750,8 @@ static char *(features[]) =
750750
751751static int included_patches [] =
752752{ /* Add new patch number below this line */
753+ /**/
754+ 2144 ,
753755/**/
754756 2143 ,
755757/**/
You can’t perform that action at this time.
0 commit comments