commit bcd8706b33a7da54d82ef4038a5736cb5bd80085
parent fae18993ada4de3caf924ac34ee6458c2f29fb12
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 1 Jan 2016 21:19:39 +0100
fix JSON syntax of contract in testcase
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/lib/test_merchant_api.c b/src/lib/test_merchant_api.c
@@ -1368,7 +1368,7 @@ run (void *cls,
.details.pay.max_fee = "EUR:0.5",
.details.pay.coin_ref = "withdraw-coin-1",
.details.pay.wire_details = "{ \"type\":\"TEST\", \"bank\":\"dest bank\", \"account\":42 }",
- .details.pay.contract = "{ \"items\"={ \"name\":\"ice cream\", \"value\":1 } }",
+ .details.pay.contract = "{ \"items\":[ {\"name\":\"ice cream\", \"value\":1} ] }",
.details.pay.transaction_id = 1 },
/* Try to double-spend the 5 EUR coin with different wire details */
@@ -1379,7 +1379,7 @@ run (void *cls,
.details.pay.max_fee = "EUR:0.5",
.details.pay.coin_ref = "withdraw-coin-1",
.details.pay.wire_details = "{ \"type\":\"TEST\", \"bank\":\"dest bank\", \"account\":43 }",
- .details.pay.contract = "{ \"items\"={ \"name\":\"ice cream\", \"value\":1 } }",
+ .details.pay.contract = "{ \"items\":[{ \"name\":\"ice cream\", \"value\":1} ] }",
.details.pay.transaction_id = 1 },
/* Try to double-spend the 5 EUR coin at the same merchant (but different
transaction ID) */
@@ -1390,7 +1390,7 @@ run (void *cls,
.details.pay.max_fee = "EUR:0.5",
.details.pay.coin_ref = "withdraw-coin-1",
.details.pay.wire_details = "{ \"type\":\"TEST\", \"bank\":\"dest bank\", \"account\":42 }",
- .details.pay.contract = "{ \"items\"={ \"name\":\"ice cream\", \"value\":1 } }",
+ .details.pay.contract = "{ \"items\":[ {\"name\":\"ice cream\", \"value\":1} ] }",
.details.pay.transaction_id = 2 },
/* Try to double-spend the 5 EUR coin at the same merchant (but different
contract) */
@@ -1401,7 +1401,7 @@ run (void *cls,
.details.pay.max_fee = "EUR:0.5",
.details.pay.coin_ref = "withdraw-coin-1",
.details.pay.wire_details = "{ \"type\":\"TEST\", \"bank\":\"dest bank\", \"account\":42 }",
- .details.pay.contract = "{ \"items\"={ \"name\":\"ice cream\", \"value\":2 } }",
+ .details.pay.contract = "{ \"items\":[ {\"name\":\"ice cream\", \"value\":2} ] }",
.details.pay.transaction_id = 1 },
{ .oc = OC_END }