Initial commit
This commit is contained in:
commit
f12b523950
94 changed files with 8113 additions and 0 deletions
30
customer_list_test_driver.c
Normal file
30
customer_list_test_driver.c
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
/*----------------------------------------------------------
|
||||
* HTBLA-Leonding
|
||||
* ----------------------------------------------------------
|
||||
* Description:
|
||||
* Test headers of customer_list.
|
||||
* ----------------------------------------------------------
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "shortcut.h"
|
||||
#include "test_customer_list.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
ADD_TEST(test_init_customer_list);
|
||||
ADD_TEST(test_add_entry);
|
||||
ADD_TEST(test_add_entries);
|
||||
ADD_TEST(test_get_customer_with_id_when_customer_list_is_empty);
|
||||
ADD_TEST(test_get_customer_with_id_with_one_element);
|
||||
ADD_TEST(test_get_customer_with_id_when_list_is_full);
|
||||
ADD_TEST(test_get_customers_with_revenue);
|
||||
ADD_TEST(test_get_customer_with_highest_revenue);
|
||||
ADD_TEST(test_get_customer_with_lowest_revenue);
|
||||
ADD_TEST(test_get_top_n_customers_revenue);
|
||||
ADD_TEST(test_get_bottom_n_customers_revenue);
|
||||
|
||||
run_tests();
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue