commit a915a6cffc12a1a857c9ae76cb3b336d9c68c6f9
parent 0e029474fba846f6c15b0078683052cb82115449
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date: Thu, 4 May 2023 11:19:21 +0800
icns: fix test to include 16 as smallest size
Signed-off-by: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/icns_test.go b/icns_test.go
@@ -155,12 +155,12 @@ func TestSizesFromMax(t *testing.T) {
{
"small",
100,
- []uint{64, 32},
+ []uint{64, 32, 16},
},
{
"large",
99999,
- []uint{1024, 512, 256, 128, 64, 32},
+ []uint{1024, 512, 256, 128, 64, 32, 16},
},
{
"smallest",
@@ -250,7 +250,7 @@ func TestFindNearestSize(t *testing.T) {
},
{
"too small",
- rect(0, 0, 16, 16),
+ rect(0, 0, 15, 15),
0,
},
{