blob: 79f13f6a56255071805e93325d8f2e09a0499566 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001This is a test of the script language.
2
3If after adding a new test, the test output doesn't appear properly in
Bram Moolenaar24dc2302014-05-13 20:19:58 +02004test49.failed, try to add one or more "G"s at the line ending in "test.out"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005
6STARTTEST
7:so small.vim
8:se nocp nomore viminfo+=nviminfo
Bram Moolenaarc87841c2008-02-20 09:58:18 +00009:lang mess C
Bram Moolenaar071d4272004-06-13 20:20:40 +000010:so test49.vim
Bram Moolenaarf9c8bd22015-12-29 21:34:48 +010011:" Go back to this file and append the results from register r.
12:buf test49.in
13G"rp:/^Results/,$w! test.out
Bram Moolenaar9d2c8c12007-09-25 16:00:00 +000014:"
15:" make valgrind happy
16:redir => funclist
17:silent func
18:redir END
19:for line in split(funclist, "\n")
20: let name = matchstr(line, 'function \zs[A-Z]\w*\ze(')
21: if name != ''
22: exe "delfunc " . name
23: endif
24:endfor
25:for v in keys(g:)
26: silent! exe "unlet " . v
27:endfor
28:unlet v
29:qa!
Bram Moolenaar071d4272004-06-13 20:20:40 +000030ENDTEST
31
32Results of test49.vim: