Initial commit
This commit is contained in:
commit
6451266878
13 changed files with 2532 additions and 0 deletions
45
car_test_driver.c
Normal file
45
car_test_driver.c
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
/*----------------------------------------------------------
|
||||
* HTBLA-Leonding
|
||||
* ----------------------------------------------------------
|
||||
* Description:
|
||||
* Car demo project.
|
||||
* ----------------------------------------------------------
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "car.h"
|
||||
|
||||
#include "shortcut.h"
|
||||
#include "test_car.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
ADD_TEST(get_first_aixam);
|
||||
|
||||
ADD_TEST(get_first_multipla);
|
||||
ADD_TEST(get_second_multipla);
|
||||
ADD_TEST(get_third_multipla);
|
||||
|
||||
ADD_TEST(get_first_jeep);
|
||||
ADD_TEST(get_second_jeep);
|
||||
|
||||
ADD_TEST(get_car_fails);
|
||||
ADD_TEST(init);
|
||||
ADD_TEST(init_resets_acceleration_rate);
|
||||
|
||||
ADD_TEST(acceleration_rate);
|
||||
ADD_TEST(too_high_acceleration_rate_for_aixam);
|
||||
ADD_TEST(too_high_acceleration_rate_for_multipla);
|
||||
ADD_TEST(too_high_acceleration_rate_for_jeep);
|
||||
ADD_TEST(too_low_acceleration_rate_for_all_car_types);
|
||||
|
||||
ADD_TEST(test_accelerate);
|
||||
ADD_TEST(init_resets_speed);
|
||||
ADD_TEST(accelerate_aixam_to_max_speed);
|
||||
ADD_TEST(accelerate_multipla_to_max_speed);
|
||||
ADD_TEST(accelerate_jeep_to_max_speed);
|
||||
|
||||
run_tests();
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue