aboutsummaryrefslogtreecommitdiff
path: root/test/suites/api/test_equal.c
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2019-10-19 20:35:28 +0300
committerPetri Lehtinen <petri@digip.org>2019-10-21 08:56:03 +0300
commita8f5fa5f5a2b7613aa2aa27b4a4df83b5a0ecd1b (patch)
tree366ad4f7e39808675d35d9c941fd51a8c86b0bda /test/suites/api/test_equal.c
parent7c0297abe8f4fb4aafd642c3130628185dc78978 (diff)
downloadjansson-a8f5fa5f5a2b7613aa2aa27b4a4df83b5a0ecd1b.zip
jansson-a8f5fa5f5a2b7613aa2aa27b4a4df83b5a0ecd1b.tar.gz
jansson-a8f5fa5f5a2b7613aa2aa27b4a4df83b5a0ecd1b.tar.bz2
Tweak clang-format configuration a bit
Set ColumnLimit to 90, remove AllowShortCaseLabelsOnASingleLine.
Diffstat (limited to 'test/suites/api/test_equal.c')
-rw-r--r--test/suites/api/test_equal.c31
1 files changed, 15 insertions, 16 deletions
diff --git a/test/suites/api/test_equal.c b/test/suites/api/test_equal.c
index 9bcd392..d068b7b 100644
--- a/test/suites/api/test_equal.c
+++ b/test/suites/api/test_equal.c
@@ -157,18 +157,17 @@ static void test_equal_object() {
static void test_equal_complex() {
json_t *value1, *value2, *value3;
- const char *complex_json =
- "{"
- " \"integer\": 1, "
- " \"real\": 3.141592, "
- " \"string\": \"foobar\", "
- " \"true\": true, "
- " \"object\": {"
- " \"array-in-object\": [1,true,\"foo\",{}],"
- " \"object-in-object\": {\"foo\": \"bar\"}"
- " },"
- " \"array\": [\"foo\", false, null, 1.234]"
- "}";
+ const char *complex_json = "{"
+ " \"integer\": 1, "
+ " \"real\": 3.141592, "
+ " \"string\": \"foobar\", "
+ " \"true\": true, "
+ " \"object\": {"
+ " \"array-in-object\": [1,true,\"foo\",{}],"
+ " \"object-in-object\": {\"foo\": \"bar\"}"
+ " },"
+ " \"array\": [\"foo\", false, null, 1.234]"
+ "}";
value1 = json_loads(complex_json, 0, NULL);
value2 = json_loads(complex_json, 0, NULL);
@@ -179,14 +178,14 @@ static void test_equal_complex() {
fail("json_equal fails for two equal objects");
json_array_set_new(
- json_object_get(json_object_get(value2, "object"), "array-in-object"),
- 1, json_false());
+ json_object_get(json_object_get(value2, "object"), "array-in-object"), 1,
+ json_false());
if (json_equal(value1, value2))
fail("json_equal fails for two inequal objects");
json_object_set_new(
- json_object_get(json_object_get(value3, "object"), "object-in-object"),
- "foo", json_string("baz"));
+ json_object_get(json_object_get(value3, "object"), "object-in-object"), "foo",
+ json_string("baz"));
if (json_equal(value1, value3))
fail("json_equal fails for two inequal objects");