diff options
| author | mo khan <mo.khan@gmail.com> | 2020-06-28 16:02:55 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-06-28 16:02:55 -0600 |
| commit | b666decae0dbdc7716df52f8d4cdf21b3144b565 (patch) | |
| tree | c14a8ff137f80b5eabffd331a05d58b640e5da36 /src | |
| parent | 8c2c29ec02da11b67b77ee8cd2538edbfd540257 (diff) | |
Move src and doc
Diffstat (limited to 'src')
| -rw-r--r-- | src/01/main.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/01/main.c b/src/01/main.c new file mode 100644 index 0000000..db0e615 --- /dev/null +++ b/src/01/main.c @@ -0,0 +1,21 @@ +#include <cgreen/cgreen.h> + +TestSuite *priority_queue_tests(); +TestSuite *stack_tests(); +TestSuite *swap_singly_linked_list_tests(); +TestSuite *swap_doubly_linked_list_tests(); +TestSuite *min_stack_tests(); + +int main(int argc, char **argv) { + TestSuite *suite = create_test_suite(); + + add_suite(suite, priority_queue_tests()); + add_suite(suite, stack_tests()); + add_suite(suite, swap_singly_linked_list_tests()); + add_suite(suite, swap_doubly_linked_list_tests()); + add_suite(suite, min_stack_tests()); + + if (argc > 1) + return run_single_test(suite, argv[1], create_text_reporter()); + return run_test_suite(suite, create_text_reporter()); +} |
