Loading internal/pkg/x2x/x2x_test.go +6 −2 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ func TestX2X(t *testing.T) { t.Logf("JSON:\n%s", js) var e1 Example var e1 *Example if err := json.Unmarshal(js, &e1); err != nil { t.Fatalf("json.Unmarshal() failed with: %s", err) } Loading @@ -74,11 +74,15 @@ func TestX2X(t *testing.T) { t.Logf("YAML:\n%s", ys) var e2 Example var e2 *Example if err := yaml.Unmarshal(ys, &e2); err != nil { t.Fatalf("yaml.Unmarshal() failed with: %s", err) } //t.Logf("e0: %#v", e0) //t.Logf("e1: %#v", e1) //t.Logf("e2: %#v", e2) if !reflect.DeepEqual(e0, e1) { t.Errorf("reflect.DeepEqual(e0, e1) are not equal") } Loading Loading
internal/pkg/x2x/x2x_test.go +6 −2 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ func TestX2X(t *testing.T) { t.Logf("JSON:\n%s", js) var e1 Example var e1 *Example if err := json.Unmarshal(js, &e1); err != nil { t.Fatalf("json.Unmarshal() failed with: %s", err) } Loading @@ -74,11 +74,15 @@ func TestX2X(t *testing.T) { t.Logf("YAML:\n%s", ys) var e2 Example var e2 *Example if err := yaml.Unmarshal(ys, &e2); err != nil { t.Fatalf("yaml.Unmarshal() failed with: %s", err) } //t.Logf("e0: %#v", e0) //t.Logf("e1: %#v", e1) //t.Logf("e2: %#v", e2) if !reflect.DeepEqual(e0, e1) { t.Errorf("reflect.DeepEqual(e0, e1) are not equal") } Loading