diff options
Diffstat (limited to 'src/json/test_json.c')
-rw-r--r-- | src/json/test_json.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/json/test_json.c b/src/json/test_json.c index d5b6d13e9..5d751bf47 100644 --- a/src/json/test_json.c +++ b/src/json/test_json.c @@ -37,32 +37,32 @@ test_amount () struct TALER_Amount a2; struct GNUNET_JSON_Specification spec[] = { TALER_JSON_spec_amount ("amount", &a2), - GNUNET_JSON_spec_end() + GNUNET_JSON_spec_end () }; GNUNET_assert (GNUNET_OK == - TALER_string_to_amount ("EUR:4.3", - &a1)); - j = json_pack("{s:o}", "amount", TALER_JSON_from_amount (&a1)); + TALER_string_to_amount ("EUR:4.3", + &a1)); + j = json_pack ("{s:o}", "amount", TALER_JSON_from_amount (&a1)); GNUNET_assert (NULL != j); GNUNET_assert (GNUNET_OK == - GNUNET_JSON_parse (j, spec, + GNUNET_JSON_parse (j, spec, NULL, NULL)); GNUNET_assert (0 == - TALER_amount_cmp (&a1, - &a2)); + TALER_amount_cmp (&a1, + &a2)); json_decref (j); return 0; } int -main(int argc, - const char *const argv[]) +main (int argc, + const char *const argv[]) { GNUNET_log_setup ("test-json", - "WARNING", - NULL); + "WARNING", + NULL); if (0 != test_amount ()) return 1; return 0; |