summaryrefslogtreecommitdiff
path: root/src/json/test_json.c
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-08-25 16:18:24 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-08-25 16:18:24 +0200
commiteb559970846f0fa27f1f25c482cd07210a56f4b1 (patch)
tree8526637825e520e1420b17515934ced794a33c01 /src/json/test_json.c
parent3742239c13001433eeade439a0e0490f07351c43 (diff)
downloadexchange-eb559970846f0fa27f1f25c482cd07210a56f4b1.tar.gz
exchange-eb559970846f0fa27f1f25c482cd07210a56f4b1.tar.bz2
exchange-eb559970846f0fa27f1f25c482cd07210a56f4b1.zip
re-format code
Diffstat (limited to 'src/json/test_json.c')
-rw-r--r--src/json/test_json.c22
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;