Source

frawor / test / global-functions-reload.in

:let &rtp.=",".escape($TESTDIR, ',\').'/rtp'
:let g:testfile="plugin/global-function.vim"
:source test.vim
:redir @f
:scriptnames
:redir END
:let g:lastsid=+matchstr(@f, '^.*\_\D\n *\zs\d\+')
:execute "redir! >> ".g:outfile
:function TestFunction
:execute "function <SNR>".g:lastsid."_testFunction"
:call frawor#Reload("plugin/global-function")
:function TestFunction
:execute "function <SNR>".g:lastsid."_testFunction"