Commits

ZyX_I committed 79759e7

Improved valid-double-registration test

Comments (0)

Files changed (3)

     execute s:testcmd
 catch
     call WriteFile(substitute(v:exception,
-                \'Frawor:\%(\\.\|[^:]\)\+:\%(\\.\|[^:]\)\+\zs:.*', '', ''))
+                \'^Frawor:\%(\\.\|[^:]\)\+:\%(\\.\|[^:]\)\+\zs:.*', '', ''))
 endtry
 

test/valid-double-registration.in

 :let &rtp.=",".escape($TESTDIR, ',\').'/rtp '
 :let &rtp.=",".escape($TESTDIR, ',\')."/rtp\n"
 :let g:testfile="plugin/register-return-value.vim"
+:redir => g:messages
 :source test.vim
+:redir END
+:call call("WriteFile", map(split(g:messages, "\n"), 'substitute(v:val, ''^Frawor:\%(\\.\|[^:]\)\+:\%(\\.\|[^:]\)\+\zs:.*'', "", "")'))

test/valid-double-registration.ok

Binary file modified.