diff --git a/src/CreateCustomer.c b/src/CreateCustomer.c index 4a6c7fd..83e5c50 100644 --- a/src/CreateCustomer.c +++ b/src/CreateCustomer.c @@ -1,20 +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 - -int main() -{ - - return 0; -} diff --git a/team.md b/team.md deleted file mode 100644 index 02580e9..0000000 --- a/team.md +++ /dev/null @@ -1,9 +0,0 @@ -# Bankmanagement-System - -- Can Hacioglu, Fdlt3817 -- Atharva Kishor Naik, fdai7514 -- Julius Philipp Engel, fdai7057 -- Shivam Chaudhary, fdlt3781 -- Mohamed Yahya Dahi, fdai6618 -- Haytham Daoula, fdai7207 - diff --git a/tests/build/test/cache/defines_dependency.yml b/tests/build/test/cache/defines_dependency.yml index 4e2251f..cc86c0f 100644 --- a/tests/build/test/cache/defines_dependency.yml +++ b/tests/build/test/cache/defines_dependency.yml @@ -5,3 +5,5 @@ src/main.c: - TEST "/home/julius/Documents/Studium/Informatik/1. Semester/ProgMeth/Bankmanagement/bankmanagement-system/src/CreateCustomer.c": - TEST +"../src/CreateCustomer.c": +- TEST diff --git a/tests/build/test/cache/input.yml b/tests/build/test/cache/input.yml index fb9e794..4dbee1a 100644 --- a/tests/build/test/cache/input.yml +++ b/tests/build/test/cache/input.yml @@ -26,7 +26,7 @@ - "+:test/**" - "-:test/support" :source: - - "/home/julius/Documents/Studium/Informatik/1. Semester/ProgMeth/Bankmanagement/bankmanagement-system/src/**" + - "../src/**" :support: - test/support :include: [] diff --git a/tests/build/test/cache/test_CreateCustomer.c b/tests/build/test/cache/test_CreateCustomer.c new file mode 100644 index 0000000..d3d6832 --- /dev/null +++ b/tests/build/test/cache/test_CreateCustomer.c @@ -0,0 +1,53 @@ +#include "../src/CreateCustomer.h" +#include "/var/lib/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" + + +void setUp(){} + +void tearDown(){} + + + +void test_generateID(){ + + + + const int test_values = + + (0x7fff * 2 + 1) + + ; + + + + + + int *numbers = calloc(test_values, sizeof(int)); + + for(int i=0;i #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