diff --git a/decode_test.go b/decode_test.go index b4809d6a..3fb98b29 100644 --- a/decode_test.go +++ b/decode_test.go @@ -5126,7 +5126,7 @@ func TestUnmarshalArrayToStructNoToArrayOptionError(t *testing.T) { } else if _, ok := err.(*UnmarshalTypeError); !ok { t.Errorf("Decode(%+v) returned wrong error type %T, want (*UnmarshalTypeError)", v1, err) } else if !strings.Contains(err.Error(), "cannot unmarshal") { - t.Errorf("Decode(%+v) returned error %q, want error containing %q", err.Error(), v1, "cannot unmarshal") + t.Errorf("Decode(%+v) returned error %q, want error containing %q", v1, err.Error(), "cannot unmarshal") } if !reflect.DeepEqual(v1, wantT) { t.Errorf("Decode() = %+v (%T), want %+v (%T)", v1, v1, wantT, wantT)