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
parent
dc5597c054
commit
5c5f5ef478
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue