From adcfea9831a81be3f73d047b0acb30f1dde2bb57 Mon Sep 17 00:00:00 2001 From: INNA Date: Fri, 9 Feb 2024 20:00:30 +0100 Subject: [PATCH] =?UTF-8?q?Test=20hinzuf=C3=BCgen=20des=20Tests=20f=C3=BCr?= =?UTF-8?q?=20Gleichheit=20bei=20int?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/test_kleiner_groessergleich.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 test/test_kleiner_groessergleich.c diff --git a/test/test_kleiner_groessergleich.c b/test/test_kleiner_groessergleich.c new file mode 100644 index 0000000..2c08eed --- /dev/null +++ b/test/test_kleiner_groessergleich.c @@ -0,0 +1,27 @@ +#ifdef TEST +#include "unity.h" +#include "kleiner_groessergleich.h" +#include "kleiner_groessergleich.c" + +void setUp(void) +{ + +} + +void tearDown(void) +{ + +} + +// Test 1 +void test_gleich(void) +{ + int result, expected = 3; + + result = vergleicheZahlen_int(1,1); + + TEST_ASSERT_EQUAL_INT(expected, result); +} + + +#endif //TEST \ No newline at end of file