11-recursion-algos/test_driver.c

27 lines
709 B
C

/*----------------------------------------------------------
* HTBLA-Leonding
* ---------------------------------------------------------
* Title: Test Driver recursive and iterative algorithms
* Author: S. Schraml
* ----------------------------------------------------------
*/
#include "shortcut.h"
#include "test_sum_of_digits.h"
#include "test_reverse_string.h"
#include "test_count_char.h"
int main(int argc, char *argv[])
{
ADD_TEST(test_sum_of_digits_rec);
ADD_TEST(test_sum_of_digits_itr);
ADD_TEST(test_count_char_rec);
ADD_TEST(test_count_char_itr);
ADD_TEST(test_reverse_string_rec);
ADD_TEST(test_reverse_string_itr);
run_tests();
return 0;
}