diff options
author | Jeff Garzik <jgarzik@src.gnome.org> | 1999-01-03 06:44:45 +0000 |
---|---|---|
committer | Jeff Garzik <jgarzik@src.gnome.org> | 1999-01-03 06:44:45 +0000 |
commit | 4b72e452335914b9a4682445a7bea4290fa2419e (patch) | |
tree | 338a777b4d3c168a558730d35d4a480cd920e867 /tests/node-test.c | |
parent | 0b74f03e70ea7cab8c0f9d58108a446e3cb16d1e (diff) |
add array-test.c
* tests/Makefile.am:
add array-test.c
* tests/array-test.c:
New module, tests array family
* tests/hash-test.c, tests/list-test.c, tests/slist-test.c,
tests/string-test.c, tests/node-test.c:
Clean out cruft left over from testglib.
Diffstat (limited to 'tests/node-test.c')
-rw-r--r-- | tests/node-test.c | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/tests/node-test.c b/tests/node-test.c index efd7b7667..d0044f704 100644 --- a/tests/node-test.c +++ b/tests/node-test.c @@ -183,94 +183,6 @@ g_node_test (void) exit(1); } -gboolean -my_hash_callback_remove (gpointer key, - gpointer value, - gpointer user_data) -{ - int *d = value; - - if ((*d) % 2) - return TRUE; - - return FALSE; -} - -void -my_hash_callback_remove_test (gpointer key, - gpointer value, - gpointer user_data) -{ - int *d = value; - - if ((*d) % 2) - g_print ("bad!\n"); -} - -void -my_hash_callback (gpointer key, - gpointer value, - gpointer user_data) -{ - int *d = value; - *d = 1; -} - -guint -my_hash (gconstpointer key) -{ - return (guint) *((const gint*) key); -} - -gint -my_hash_compare (gconstpointer a, - gconstpointer b) -{ - return *((const gint*) a) == *((const gint*) b); -} - -gint -my_list_compare_one (gconstpointer a, gconstpointer b) -{ - gint one = *((const gint*)a); - gint two = *((const gint*)b); - return one-two; -} - -gint -my_list_compare_two (gconstpointer a, gconstpointer b) -{ - gint one = *((const gint*)a); - gint two = *((const gint*)b); - return two-one; -} - -/* void -my_list_print (gpointer a, gpointer b) -{ - gint three = *((gint*)a); - g_print("%d", three); -}; */ - -gint -my_compare (gconstpointer a, - gconstpointer b) -{ - const char *cha = a; - const char *chb = b; - - return *cha - *chb; -} - -gint -my_traverse (gpointer key, - gpointer value, - gpointer data) -{ - char *ch = key; - g_print ("%c ", *ch); - return FALSE; -} int main (int argc, |