More reproducible inkscape test

This commit is contained in:
Melon 2023-06-05 00:22:04 +01:00
parent f6d3abb515
commit a432ba8027
Signed by: melon
GPG Key ID: 6C9D970C50D26A25
2 changed files with 4 additions and 12 deletions

View File

@ -24,10 +24,6 @@ func TestFaviconList_PreProcess(t *testing.T) {
assert.Equal(t, "https://example.com/assets/logo.svg", icons.Svg.Url)
assert.Equal(t, "74cdc17d0502a690941799c327d9ca1ed042e76c784def43a42937f2eed270b4", icons.Svg.Hash)
assert.Equal(t, "84841341dafbb1e54c62d160dfc5e48c3f8db4b22265a4dbe2e0318debf9b670", icons.Png.Hash)
assert.Equal(t, "33fc667fdb0e32305f2ee27e7dd7feb781cc776638d0971db7e18cc6335a15c7", icons.Ico.Hash)
assert.Equal(t, 0, bytes.Compare(exampleSvg, iconSvg))
assert.Equal(t, 0, bytes.Compare(examplePng, iconPng))
assert.Equal(t, 0, bytes.Compare(exampleIco, iconIco))
assert.NotEqual(t, "", icons.Png.Hash)
assert.NotEqual(t, "", icons.Ico.Hash)
}

View File

@ -42,10 +42,6 @@ func TestFaviconsNew(t *testing.T) {
assert.Equal(t, "https://example.com/assets/logo.svg", icons.Svg.Url)
assert.Equal(t, "74cdc17d0502a690941799c327d9ca1ed042e76c784def43a42937f2eed270b4", icons.Svg.Hash)
assert.Equal(t, "84841341dafbb1e54c62d160dfc5e48c3f8db4b22265a4dbe2e0318debf9b670", icons.Png.Hash)
assert.Equal(t, "33fc667fdb0e32305f2ee27e7dd7feb781cc776638d0971db7e18cc6335a15c7", icons.Ico.Hash)
assert.Equal(t, 0, bytes.Compare(exampleSvg, iconSvg))
assert.Equal(t, 0, bytes.Compare(examplePng, iconPng))
assert.Equal(t, 0, bytes.Compare(exampleIco, iconIco))
assert.NotEqual(t, "", icons.Png.Hash)
assert.NotEqual(t, "", icons.Ico.Hash)
}