26 lines
763 B
C
Executable file
26 lines
763 B
C
Executable file
/*----------------------------------------------------------
|
|
* HTBLA-Leonding
|
|
* ---------------------------------------------------------
|
|
* Author: S. Schraml
|
|
* ----------------------------------------------------------
|
|
* Description:
|
|
* Executes all unit tests of Roman Number.
|
|
* ----------------------------------------------------------
|
|
*/
|
|
|
|
#include "shortcut.h"
|
|
#include "test_roman_number.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
ADD_TEST(test_create_with_valid_number);
|
|
ADD_TEST(test_create_with_invalid_number);
|
|
ADD_TEST(test_create_with_null_string);
|
|
ADD_TEST(test_get_valid_value);
|
|
ADD_TEST(test_get_value_from_invalid_number);
|
|
ADD_TEST(test_calc_roman_gcd);
|
|
ADD_TEST(test_int_gdc);
|
|
|
|
run_tests();
|
|
return 0;
|
|
}
|