mirror of
https://github.com/jwetzell/artnet-go.git
synced 2026-08-22 23:28:58 +00:00
switch tests to use cmp.Diff
This commit is contained in:
+2
-1
@@ -4,6 +4,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/google/go-cmp/cmp/cmpopts"
|
||||
"github.com/jwetzell/artnet-go"
|
||||
)
|
||||
|
||||
@@ -924,7 +925,7 @@ func TestGoodArtAddressUnmarshal(t *testing.T) {
|
||||
t.Fatalf("failed to Unmarshal ArtAddress: %s", err)
|
||||
}
|
||||
|
||||
diff := cmp.Diff(test.Expected, got)
|
||||
diff := cmp.Diff(test.Expected, got, cmpopts.IgnoreUnexported(artnet.ArtAddress{}))
|
||||
if diff != "" {
|
||||
t.Fatalf("ArtAddress does not match\n%s", diff)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user