diff --git a/src/main/c/Mathe.c b/src/main/c/Mathe.c index d4bb7dc..858a96f 100644 --- a/src/main/c/Mathe.c +++ b/src/main/c/Mathe.c @@ -189,4 +189,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/Mathe.h b/src/main/c/Mathe.h index 9c04579..d0e1b2c 100644 --- a/src/main/c/Mathe.h +++ b/src/main/c/Mathe.h @@ -7,4 +7,4 @@ int dividiere(int zahl1, int zahl2); int addiere(int zahl1, int zahl2); int subtrahiere(int zahl1, int zahl2); int multipliziere(int zahl1, int zahl2); -#endif // MATHEMATIKSPIE \ No newline at end of file +#endif // MATHEMATIKSPIE 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 4f61ea7..0000000 --- a/src/test/c/test_test.c +++ /dev/null @@ -1,28 +0,0 @@ -#ifdef TEST - -#include "unity.h" - -#include "test.h" - -void setUp(void) -{ -} - -void tearDown(void) -{ -} - -void test_test__return_5(void) -{ - /* arrange */ - int expected = 5; - int actual; - - /* act */ - actual = return_5(); - - /* assert */ - TEST_ASSERT_EQUAL_INT(expected, actual); -} - -#endif // TEST