mirror of
https://github.com/plutov/paypal.git
synced 2025-01-23 02:11:02 +01:00
Fix UTs
This commit is contained in:
parent
2eacad2d5d
commit
f17191367d
|
@ -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",
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user