core: add index to CIND helper

This commit is contained in:
Dan Williams
2010-11-28 21:34:00 -06:00
parent 9479c04aec
commit 2dd59c3ddd
3 changed files with 25 additions and 12 deletions

View File

@@ -1103,13 +1103,13 @@ test_cind_results (const char *desc,
for (i = 0; i < expected_results_len; i++) {
CindEntry *expected = &expected_results[i];
CindEntry *compare;
CindResponse *compare;
compare = g_hash_table_lookup (results, expected->desc);
g_assert (compare);
g_assert_cmpint (expected->min, ==, compare->min);
g_assert_cmpint (expected->max, ==, compare->max);
g_assert_cmpint (i, ==, cind_response_get_index (compare));
g_assert_cmpint (expected->min, ==, cind_response_get_min (compare));
g_assert_cmpint (expected->max, ==, cind_response_get_max (compare));
}
g_hash_table_destroy (results);