Skip to content

Commit 742cf6c

Browse files
committed
updated for version 7.3.843
Problem: Missing test file changes. Solution: Change the tests.
1 parent 9c46a37 commit 742cf6c

File tree

3 files changed

+42
-4
lines changed

3 files changed

+42
-4
lines changed

src/testdir/test49.ok

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

src/testdir/test49.vim

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9624,7 +9624,38 @@ Xout "No Crash for vimgrep on BufUnload"
96249624
Xcheck 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

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,8 @@ static char *(features[]) =
728728

729729
static int included_patches[] =
730730
{ /* Add new patch number below this line */
731+
/**/
732+
843,
731733
/**/
732734
842,
733735
/**/

0 commit comments

Comments
 (0)