int main(int ac, char **av) { (void) ac; (void) av; #ifndef THREADSAFE fputs("WARNING: library compiled without --enable-thread-locking ?!\n", stderr); #endif fputs("# concurrent test: COLL_ENG_RBTREE\n", stderr); test_hashtable(COLL_ENG_RBTREE); fputs("# concurrent test: COLL_ENG_LIST_MTF\n", stderr); test_hashtable(COLL_ENG_LIST_MTF); fputs("# concurrent test: COLL_ENG_LIST\n", stderr); return test_hashtable(COLL_ENG_LIST); }
int main (int argc, char **argv) { g_type_init (); ol_log_set_file ("-"); test_hashtable (); test_traverse (); return 0; }
bool test_all() { printf("Test Stack: %s\n", test_stack()?"PASS":"******"); printf("Test Queue: %s\n", test_queue()?"PASS":"******"); printf("Test List: %s\n", test_list()?"PASS":"******"); printf("Test MinHeap: %s\n",test_minheap()?"PASS":"******"); printf("Test MaxHeap: %s\n",test_maxheap()?"PASS":"******"); printf("Test RedBlack: %s\n", /*test_redblack()*/false?"PASS":"******"); printf("Test BST: %s\n", test_bst()?"PASS":"******"); printf("Test HashTable: %s\n",test_hashtable()?"PASS":"******"); printf("Test Tuple: %s\n",test_tuple()?"PASS":"******"); if(DEBUG)functional_tests(); return 1; }
int main() { nano_init(); printf("Tommy check program.\n"); test_list(); test_array(); test_arrayblk(); test_hashtable(); test_hashdyn(); test_hashlin(); printf("OK\n"); return EXIT_SUCCESS; }
int main (void) { extern void test_config (void); extern void test_except (void); extern void test_hashtable (void); extern void test_memory (void); extern void test_scanner (void); extern void test_template (void); #ifdef DEBUG_MALLOC GC_find_leak = 1; #endif test_config(); test_except(); test_hashtable(); test_memory(); test_scanner(); test_template(); #ifdef DEBUG_MALLOC CHECK_LEAKS(); #endif return 0; }