parsers/web: Compare URLs by their string representations instead.

The Path can be different in that the original URL is missing the "/" at the beginning, however the resulting URL may very well contain a "/" at the beginning. In the resulting string representation this doesn't make any difference.
develop
Icedream 2016-06-20 02:44:51 +02:00
parent dc5597c054
commit 5c5f5ef478
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ func Test_Parser_Parse_IRCBotScience_Redirect(t *testing.T) {
assert.Nil(t, result.Error)
assert.Nil(t, result.UserError)
assert.NotNil(t, result.FollowUrl)
assert.Equal(t, *originalUrl, *result.FollowUrl)
assert.Equal(t, originalUrl.String(), result.FollowUrl.String())
}
func Test_Parser_Parse_Hash(t *testing.T) {