forked from github/server
fix broken test
This commit is contained in:
parent
a986640ef6
commit
6e0286b9a9
|
@ -63,10 +63,8 @@ static cJSON *export_a_region(CuTest * tc, const struct terrain_type *terrain, r
|
||||||
json = cJSON_Parse(buf);
|
json = cJSON_Parse(buf);
|
||||||
CuAssertPtrNotNull(tc, json);
|
CuAssertPtrNotNull(tc, json);
|
||||||
CuAssertIntEquals(tc, cJSON_Object, json->type);
|
CuAssertIntEquals(tc, cJSON_Object, json->type);
|
||||||
json = json->child;
|
json = cJSON_GetObjectItem(json, "regions");
|
||||||
CuAssertPtrEquals(tc, 0, json->next);
|
|
||||||
CuAssertIntEquals(tc, cJSON_Object, json->type);
|
CuAssertIntEquals(tc, cJSON_Object, json->type);
|
||||||
CuAssertStrEquals(tc, "regions", json->string);
|
|
||||||
json = json->child;
|
json = json->child;
|
||||||
CuAssertIntEquals(tc, r->uid, atoi(json->string));
|
CuAssertIntEquals(tc, r->uid, atoi(json->string));
|
||||||
CuAssertPtrNotNull(tc, attr = cJSON_GetObjectItem(json, "x"));
|
CuAssertPtrNotNull(tc, attr = cJSON_GetObjectItem(json, "x"));
|
||||||
|
|
Loading…
Reference in New Issue