diff options
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test34.in | 6 | ||||
-rw-r--r-- | src/testdir/test34.ok | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/testdir/test34.in b/src/testdir/test34.in index 28fd00c4b..5abc140be 100644 --- a/src/testdir/test34.in +++ b/src/testdir/test34.in @@ -1,5 +1,6 @@ Test for user functions. Also test an <expr> mapping calling a function. +Also test that a builtin function cannot be replaced. STARTTEST :so small.vim @@ -58,7 +59,10 @@ XX+-XX ---*--- (one (two -[(one again:$-5,$w! test.out +[(one again:call append(line('$'), max([1, 2, 3])) +:call extend(g:, {'max': function('min')}) +:call append(line('$'), max([1, 2, 3])) +:$-7,$w! test.out :delfunc Table :delfunc Compute :delfunc Expr1 diff --git a/src/testdir/test34.ok b/src/testdir/test34.ok index d71183dce..605381227 100644 --- a/src/testdir/test34.ok +++ b/src/testdir/test34.ok @@ -4,3 +4,5 @@ XX111-XX 1. one 2. two 1. one again +3 +3 |