From aaff3caef9a89ba2c07a1dffdc531c57c127b950 Mon Sep 17 00:00:00 2001 From: INNA Date: Fri, 9 Feb 2024 20:14:46 +0100 Subject: [PATCH] =?UTF-8?q?refactoring:=20Anpassung=20wegen=20Datei=C3=A4n?= =?UTF-8?q?derung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/kleiner_groessergleich.c | 2 +- test/test_division.c | 38 +----------------------------------- 2 files changed, 2 insertions(+), 38 deletions(-) diff --git a/src/kleiner_groessergleich.c b/src/kleiner_groessergleich.c index 1771ce1..04124c1 100644 --- a/src/kleiner_groessergleich.c +++ b/src/kleiner_groessergleich.c @@ -17,7 +17,7 @@ int main() { */ // Definition der Funktion vergleicheZahlen -int vergleicheZahlen(int zahl1, int zahl2) { +int vergleicheZahlen_int(int zahl1, int zahl2) { if (zahl1 < zahl2) { return 1; //wenn Zahl1 keiner als Zahl2 dann return 1 } else if (zahl1 > zahl2) { diff --git a/test/test_division.c b/test/test_division.c index ccf59c7..6cdbfa9 100644 --- a/test/test_division.c +++ b/test/test_division.c @@ -22,40 +22,4 @@ void test_division_1(void) TEST_ASSERT_EQUAL_INT(expected, result); } -void test_division_1_durch_0(void) -{ - int result, expected = 0; - - result = divisionInt(10,0); - - TEST_ASSERT_EQUAL_INT(expected, result); -} - -void test_division_2(void) -{ - double result, expected = 5.0; - - result = divisionDouble(10.0,2.0); - - TEST_ASSERT_EQUAL_DOUBLE(expected, result); -} - -void test_bitshift_druch_0(void) -{ - int result, expected = 16; - - result = divisionByTwo(16,0); - - TEST_ASSERT_EQUAL_INT(expected, result); -} - -void test_division_3(void) -{ - int result, expected = 4; - - result = divisionByTwo(16,2); - - TEST_ASSERT_EQUAL_INT(expected, result); -} - -#endif // TEST \ No newline at end of file +#endif //TEST \ No newline at end of file