commit 81c49d6ba479ac1da748fc1863b909d17f9f10c9
parent 30755918db838bf24ae1859772f27209af096fe5
Author: Jack Mordaunt <jackmordaunt@gmail.com>
Date: Wed, 14 Feb 2018 16:13:06 +0100
[-] Removed dependency on a local lib that isn't hosted anyhere yet.
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/icns.go b/icns.go
@@ -135,7 +135,7 @@ func sizesFrom(max uint) []uint {
return sizes[ii:len(sizes)]
}
}
- return nil
+ return []uint{}
}
// OsType is a 4 character identifier used to differentiate icon types.
diff --git a/icns_test.go b/icns_test.go
@@ -7,9 +7,9 @@ import (
"image/png"
"io"
"io/ioutil"
+ "reflect"
"testing"
- "github.com/jackmordaunt/deep"
"github.com/pkg/errors"
)
@@ -111,7 +111,7 @@ func TestSizesFromMax(t *testing.T) {
for _, tt := range tests {
t.Run(tt.desc, func(st *testing.T) {
got := sizesFrom(tt.from)
- if !deep.EqualContents(got, tt.want) {
+ if !reflect.DeepEqual(got, tt.want) {
st.Errorf("want=%d, got=%d", tt.want, got)
}
})