From f17191367db933e7adffddc7bbe3d07fd98d5d66 Mon Sep 17 00:00:00 2001 From: Alex Pliutau Date: Sun, 16 Dec 2018 13:24:11 +0100 Subject: [PATCH] Fix UTs --- integration_test.go | 4 ++-- unit_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/integration_test.go b/integration_test.go index 6249f05..bc3a573 100644 --- a/integration_test.go +++ b/integration_test.go @@ -188,7 +188,7 @@ func TestCreatePayment(t *testing.T) { ItemList: &ItemList{ Items: []Item{ Item{ - Quantity: "2", + Quantity: 2, Price: "3.50", Currency: "USD", Name: "Product 1", @@ -251,7 +251,7 @@ func TestPatchPayment(t *testing.T) { ItemList: &ItemList{ Items: []Item{ Item{ - Quantity: "2", + Quantity: 2, Price: "3.50", Currency: "USD", Name: "Product 1", diff --git a/unit_test.go b/unit_test.go index 7062ad8..bbfd71c 100644 --- a/unit_test.go +++ b/unit_test.go @@ -59,7 +59,7 @@ func TestTypeItem(t *testing.T) { "name":"Item", "price":"22.99", "currency":"GBP", - "quantity":"1" + "quantity":1 }` i := &Item{} @@ -71,7 +71,7 @@ func TestTypeItem(t *testing.T) { if i.Name != "Item" || i.Price != "22.99" || i.Currency != "GBP" || - i.Quantity != "1" { + i.Quantity != 1 { t.Errorf("Item decoded result is incorrect, Given: %v", i) } }