blob: 22191b21a28bb313bb151d2824bb9cb5d2285698 [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 Moolenaar9d2c8c12007-09-25 16:00:00 +00004test49.failed, try to add one ore 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
9:so test49.vim
Bram Moolenaar9d2c8c12007-09-25 16:00:00 +000010GGGGGGGGGGGGGG"rp:.-,$w! test.out
11:"
12:" make valgrind happy
13:redir => funclist
14:silent func
15:redir END
16:for line in split(funclist, "\n")
17: let name = matchstr(line, 'function \zs[A-Z]\w*\ze(')
18: if name != ''
19: exe "delfunc " . name
20: endif
21:endfor
22:for v in keys(g:)
23: silent! exe "unlet " . v
24:endfor
25:unlet v
26:qa!
Bram Moolenaar071d4272004-06-13 20:20:40 +000027ENDTEST
28
29Results of test49.vim: