File tree Expand file tree Collapse file tree 3 files changed +42
-4
lines changed
Expand file tree Collapse file tree 3 files changed +42
-4
lines changed Original file line number Diff line number Diff line change @@ -87,8 +87,13 @@ Results of test49.vim:
8787*** Test 85: OK (198689)
8888--- Test 86: No Crash for vimgrep on BufUnload
8989*** Test 86: OK (0)
90- --- Test 87: All tests were run with throwing exceptions on error.
90+ --- Test 87: 3
91+ --- Test 87: 5
92+ --- Test 87: abcdefghijk
93+ --- Test 87: Successfully executed funcref Add2
94+ *** Test 87: OK (0)
95+ --- Test 88: All tests were run with throwing exceptions on error.
9196 The $VIMNOERRTHROW control is not configured.
92- --- Test 87 : All tests were run with throwing exceptions on interrupt.
97+ --- Test 88 : All tests were run with throwing exceptions on interrupt.
9398 The $VIMNOINTTHROW control is not configured.
94- *** Test 87 : OK (50443995)
99+ *** Test 88 : OK (50443995)
Original file line number Diff line number Diff line change @@ -9624,7 +9624,38 @@ Xout "No Crash for vimgrep on BufUnload"
96249624Xcheck 0
96259625
96269626" -------------------------------------------------------------------------------
9627- " Test 87: $VIMNOERRTHROW and $VIMNOINTTHROW support {{{1
9627+ " Test 87 using (expr) ? funcref : funcref {{{1
9628+ "
9629+ " Vim needs to correctly parse the funcref and even when it does
9630+ " not execute the funcref, it needs to consume the trailing ()
9631+ " -------------------------------------------------------------------------------
9632+
9633+ XpathINIT
9634+
9635+ func Add2 (x1, x2)
9636+ return a: x1 + a: x2
9637+ endfu
9638+
9639+ func GetStr ()
9640+ return " abcdefghijklmnopqrstuvwxyp"
9641+ endfu
9642+
9643+ echo function (' Add2' )(2 ,3 )
9644+
9645+ Xout 1 ? function (' Add2' )(1 ,2 ) : function (' Add2' )(2 ,3 )
9646+ Xout 0 ? function (' Add2' )(1 ,2 ) : function (' Add2' )(2 ,3 )
9647+ " Make sure, GetStr() still works.
9648+ Xout GetStr ()[0 :10 ]
9649+
9650+
9651+ delfunction GetStr
9652+ delfunction Add2
9653+ Xout " Successfully executed funcref Add2"
9654+
9655+ Xcheck 0
9656+
9657+ " -------------------------------------------------------------------------------
9658+ " Test 88: $VIMNOERRTHROW and $VIMNOINTTHROW support {{{1
96289659"
96299660" It is possible to configure Vim for throwing exceptions on error
96309661" or interrupt, controlled by variables $VIMNOERRTHROW and
Original file line number Diff line number Diff line change @@ -728,6 +728,8 @@ static char *(features[]) =
728728
729729static int included_patches [] =
730730{ /* Add new patch number below this line */
731+ /**/
732+ 843 ,
731733/**/
732734 842 ,
733735/**/
You can’t perform that action at this time.
0 commit comments