fix broken test

This commit is contained in:
Enno Rehling 2014-03-22 17:43:34 +01:00
parent a986640ef6
commit 6e0286b9a9
1 changed files with 1 additions and 3 deletions

View File

@ -63,10 +63,8 @@ static cJSON *export_a_region(CuTest * tc, const struct terrain_type *terrain, r
json = cJSON_Parse(buf);
CuAssertPtrNotNull(tc, json);
CuAssertIntEquals(tc, cJSON_Object, json->type);
json = json->child;
CuAssertPtrEquals(tc, 0, json->next);
json = cJSON_GetObjectItem(json, "regions");
CuAssertIntEquals(tc, cJSON_Object, json->type);
CuAssertStrEquals(tc, "regions", json->string);
json = json->child;
CuAssertIntEquals(tc, r->uid, atoi(json->string));
CuAssertPtrNotNull(tc, attr = cJSON_GetObjectItem(json, "x"));