diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-02-26 22:54:11 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-02-26 22:54:11 +0100 |
commit | b8f8461d94e153c591eff126f508b25ce5c30639 (patch) | |
tree | f4570ed651c7827011987d92576aee5825ee852a /src/testdir/test49.vim | |
parent | 988232fabba5d5dc154fcb962243a36740f02b12 (diff) | |
download | vim-git-b8f8461d94e153c591eff126f508b25ce5c30639.tar.gz |
updated for version 7.3.843v7.3.843
Problem: Missing test file changes.
Solution: Change the tests.
Diffstat (limited to 'src/testdir/test49.vim')
-rw-r--r-- | src/testdir/test49.vim | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/src/testdir/test49.vim b/src/testdir/test49.vim index f32f11493..c1ad76a7a 100644 --- a/src/testdir/test49.vim +++ b/src/testdir/test49.vim @@ -9624,7 +9624,38 @@ Xout "No Crash for vimgrep on BufUnload" Xcheck 0 "------------------------------------------------------------------------------- -" Test 87: $VIMNOERRTHROW and $VIMNOINTTHROW support {{{1 +" Test 87 using (expr) ? funcref : funcref {{{1 +" +" Vim needs to correctly parse the funcref and even when it does +" not execute the funcref, it needs to consume the trailing () +"------------------------------------------------------------------------------- + +XpathINIT + +func Add2(x1, x2) + return a:x1 + a:x2 +endfu + +func GetStr() + return "abcdefghijklmnopqrstuvwxyp" +endfu + +echo function('Add2')(2,3) + +Xout 1 ? function('Add2')(1,2) : function('Add2')(2,3) +Xout 0 ? function('Add2')(1,2) : function('Add2')(2,3) +" Make sure, GetStr() still works. +Xout GetStr()[0:10] + + +delfunction GetStr +delfunction Add2 +Xout "Successfully executed funcref Add2" + +Xcheck 0 + +"------------------------------------------------------------------------------- +" Test 88: $VIMNOERRTHROW and $VIMNOINTTHROW support {{{1 " " It is possible to configure Vim for throwing exceptions on error " or interrupt, controlled by variables $VIMNOERRTHROW and |