Mercurial > hg > RemoteEditor > vim7
comparison src/testdir/test34.in @ 48:67300faee616 v7-3-618
v7-3-618
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 01 Aug 2012 18:08:28 +0900 |
parents | c16898406ff2 |
children |
comparison
equal
deleted
inserted
replaced
47:6c0584ec21b1 | 48:67300faee616 |
---|---|
1 Test for user functions. | 1 Test for user functions. |
2 Also test an <expr> mapping calling a function. | 2 Also test an <expr> mapping calling a function. |
3 Also test that a builtin function cannot be replaced. | |
3 | 4 |
4 STARTTEST | 5 STARTTEST |
5 :so small.vim | 6 :so small.vim |
6 :function Table(title, ...) | 7 :function Table(title, ...) |
7 : let ret = a:title | 8 : let ret = a:title |
56 | 57 |
57 XX+-XX | 58 XX+-XX |
58 ---*--- | 59 ---*--- |
59 (one | 60 (one |
60 (two | 61 (two |
61 [(one again:$-5,$w! test.out | 62 [(one again:call append(line('$'), max([1, 2, 3])) |
63 :call extend(g:, {'max': function('min')}) | |
64 :call append(line('$'), max([1, 2, 3])) | |
65 :$-7,$w! test.out | |
62 :delfunc Table | 66 :delfunc Table |
63 :delfunc Compute | 67 :delfunc Compute |
64 :delfunc Expr1 | 68 :delfunc Expr1 |
65 :delfunc Expr2 | 69 :delfunc Expr2 |
66 :delfunc ListItem | 70 :delfunc ListItem |