diff --git a/.gitignore b/.gitignore index c2c4a5a..030e9aa 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -target/** \ No newline at end of file +target/** +src/test/c/test_test.c diff --git a/src/main/c/Mathe.c b/src/main/c/Mathe.c index 059b4e6..377b6b4 100644 --- a/src/main/c/Mathe.c +++ b/src/main/c/Mathe.c @@ -187,4 +187,4 @@ int mainx() { printf("Vielen Dank fürs Spielen! Auf Wiedersehen.\n"); return 0; -} \ No newline at end of file +} diff --git a/src/main/c/a.exe b/src/main/c/a.exe deleted file mode 100644 index 0e3a6cc..0000000 Binary files a/src/main/c/a.exe and /dev/null differ diff --git a/src/test/c/test_Mathe.c b/src/test/c/test_Mathe.c new file mode 100644 index 0000000..3fce345 --- /dev/null +++ b/src/test/c/test_Mathe.c @@ -0,0 +1,20 @@ +#ifdef TEST +#include "unity.h" +#include "Mathe.h" +void setUp(void) +{ +} + +void tearDown(void) +{ +} + +void test_Mathe_plus(void) +{ + + int a=berechneErgebnis(1,2,'+'); + /* assert */ + TEST_ASSERT_EQUAL_INT(a,3); +} + +#endif diff --git a/src/test/c/test_test.c b/src/test/c/test_test.c deleted file mode 100644 index e69de29..0000000