From 3be09aff7567194e8ae30a3c52ebaa98a75d8310 Mon Sep 17 00:00:00 2001 From: Daniel Weiser Date: Wed, 5 Aug 2020 17:43:56 +0300 Subject: [PATCH] Closes #33; New error messages --- v5/types_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v5/types_test.go b/v5/types_test.go index d838f43..dc9e6db 100644 --- a/v5/types_test.go +++ b/v5/types_test.go @@ -19,7 +19,7 @@ func TestClient_OrderDeliveryData(t *testing.T) { data, _ := json.Marshal(d) expectedStr := `{"payerType":"type","pickuppointAddress":"address","status":"status","trackNumber":"track"}` if string(data) != expectedStr { - t.Error("error") + t.Errorf("Marshaled: %s\nExpected: %s\n", data, expectedStr) } d.AdditionalFields = map[string]interface{}{ @@ -30,7 +30,7 @@ func TestClient_OrderDeliveryData(t *testing.T) { data, _ = json.Marshal(d) expectedStr = `{"customFirst":"one","customSecond":"two","payerType":"type","pickuppointAddress":"address","status":"status","trackNumber":"track"}` if string(data) != expectedStr { - t.Error("error") + t.Errorf("Marshaled: %s\nExpected: %s\n", data, expectedStr) } d = OrderDeliveryData{}