27 lines
682 B
C
27 lines
682 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;
|
|
}
|