+struct test
+ {
+ const char *name;
+ const char *description;
+ void (*function) (void);
+ };
+
+static const struct test tests[] =
+ {
+ {
+ "insert-any-remove-any",
+ "insert any order, delete any order",
+ test_insert_any_remove_any
+ },
+ {
+ "insert-any-remove-same",
+ "insert any order, delete same order",
+ test_insert_any_remove_same
+ },
+ {
+ "insert-any-remove-reverse",
+ "insert any order, delete reverse order",
+ test_insert_any_remove_reverse
+ },
+ {
+ "random-sequence",
+ "insert and delete in random sequence",
+ test_random_sequence
+ },
+ {
+ "insert-ordered",
+ "insert in ascending order",
+ test_insert_ordered
+ },
+ {
+ "union",
+ "union",
+ test_union
+ },
+ {
+ "union-and-intersection",
+ "union and intersection",
+ test_union_and_intersection
+ },
+ {
+ "intersect",
+ "intersect",
+ test_intersect
+ },
+ {
+ "subtract",
+ "subtract",
+ test_subtract
+ },
+ {
+ "swap",
+ "swap",
+ test_swap
+ },
+ {
+ "clear",
+ "clear",
+ test_clear
+ },
+ {
+ "clone",
+ "clone",
+ test_clone
+ },
+ {
+ "destroy-null",
+ "destroying null table",
+ test_destroy_null
+ },
+ };
+
+enum { N_TESTS = sizeof tests / sizeof *tests };