diff --git a/src/CreateCustomer.c b/src/CreateCustomer.c index 5212eab..83e5c50 100644 --- a/src/CreateCustomer.c +++ b/src/CreateCustomer.c @@ -1,15 +1,18 @@ #include "CreateCustomer.h" +/*Code written by Julius Philipp Engel, fdai7057*/ + +/* +int main() +{ + collectCustomerProperties(); +}*/ int generateID() { - srand(time(0)); - const int MIN = 1000000, MAX = 10000000; - int p_val = rand() % (MAX); - if(p_val #include #include "CreateCustomer.h" +void setUp(){} +void tearDown(){} + void test_generateID(){ - srand(time(0)); const int test_values = USHRT_MAX; /*initialize blocks by calling generateID()*/ @@ -15,6 +17,7 @@ void test_generateID(){ printf("%d\n", *(numbers+i)); } + /*assertions, range checking*/ int delta = 5000000, expected = 5000000; for(int i=0;i