@@ -260,8 +260,10 @@ func TestRender_ShortLinks(t *testing.T) {
260260
261261 rawtree := URLJoin (AppSubURL , "raw" , "master" )
262262 url := URLJoin (tree , "Link" )
263+ otherUrl := URLJoin (tree , "OtherLink" )
263264 imgurl := URLJoin (rawtree , "Link.jpg" )
264265 urlWiki := URLJoin (AppSubURL , "wiki" , "Link" )
266+ otherUrlWiki := URLJoin (AppSubURL , "wiki" , "OtherLink" )
265267 imgurlWiki := URLJoin (AppSubURL , "wiki" , "raw" , "Link.jpg" )
266268 favicon := "http://google.com/favicon.ico"
267269
@@ -301,6 +303,10 @@ func TestRender_ShortLinks(t *testing.T) {
301303 "[[Name|Link.jpg|alt=\" AltName\" |title='Title']]" ,
302304 `<p><a href="` + imgurl + `" rel="nofollow"><img src="` + imgurl + `" alt="AltName" title="Title"/></a></p>` ,
303305 `<p><a href="` + imgurlWiki + `" rel="nofollow"><img src="` + imgurlWiki + `" alt="AltName" title="Title"/></a></p>` )
306+ test (
307+ "[[Link]] [[OtherLink]]" ,
308+ `<p><a href="` + url + `" rel="nofollow">Link</a> <a href="` + otherUrl + `" rel="nofollow">OtherLink</a></p>` ,
309+ `<p><a href="` + urlWiki + `" rel="nofollow">Link</a> <a href="` + otherUrlWiki + `" rel="nofollow">OtherLink</a></p>` )
304310}
305311
306312func TestRender_Commits (t * testing.T ) {
0 commit comments