int main(int argc, char *argv[]) { log_set_max_level(LOG_DEBUG); log_parse_environment(); log_open(); test_rs(); test_prefixes(); return 0; }
/* Program entry point */ int main(int argc, char **argv) { cb_tree_t tree = cb_tree_make(); printf("%d ", ++tnum); fflush(stdout); test_insert(&tree); printf("%d ", ++tnum); fflush(stdout); test_complete(&tree, sizeof(dict) / sizeof(const char *)); printf("%d ", ++tnum); fflush(stdout); test_insert_dup(&tree); printf("%d ", ++tnum); fflush(stdout); test_contains(&tree); printf("%d ", ++tnum); fflush(stdout); test_delete(&tree); printf("%d ", ++tnum); fflush(stdout); cb_tree_clear(&tree); test_insert(&tree); test_complete(&tree, sizeof(dict) / sizeof(const char *)); printf("%d ", ++tnum); fflush(stdout); test_delete_all(&tree); printf("%d ", ++tnum); fflush(stdout); test_complete(&tree, 0); printf("%d ", ++tnum); fflush(stdout); cb_tree_clear(&tree); test_empty(&tree); printf("%d ", ++tnum); fflush(stdout); test_insert(&tree); test_prefixes(&tree); cb_tree_clear(&tree); printf("ok\n"); return 0; }