summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher James Halse Rogers <chris@Burninator.(none)>2007-06-25 17:10:52 +1000
committerChristopher James Halse Rogers <chris@Burninator.(none)>2007-06-25 17:10:52 +1000
commitbb9b6f4ef947ddc646959ba792c134850a854649 (patch)
tree790a2c495e0f5fc0e4688973fab49c0566e5c377
parent6cb706ecf1f82c833ecaf880741d2f8640edf963 (diff)
downloadradial-switcher-bb9b6f4ef947ddc646959ba792c134850a854649.tar.gz
radial-switcher-bb9b6f4ef947ddc646959ba792c134850a854649.tar.bz2
Really add the multiple windows testcase, and improve it slightly
-rw-r--r--tests/check_switcher-util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/check_switcher-util.c b/tests/check_switcher-util.c
index ee73385..a74bc3d 100644
--- a/tests/check_switcher-util.c
+++ b/tests/check_switcher-util.c
@@ -82,6 +82,9 @@ START_TEST (test_addMultipleToList)
for (i = 0; i < 500; ++i)
fail_unless (list->w[i] == (CompWindow *)i,
"Incorrect window inserted in list");
+
+ fail_unless(list->nWindows == 500,
+ "Number of windows not updated correctly");
}
END_TEST
@@ -115,6 +118,7 @@ switcher_util_suite (void)
TCase *tc_addToList = tcase_create ("Add To List");
tcase_add_checked_fixture (tc_addToList, setup, teardown);
tcase_add_test (tc_addToList, test_addToList);
+ tcase_add_test (tc_addToList, test_addMultipleToList);
suite_add_tcase (s, tc_addToList);
return s;