From a49472693dc730577172517f49172ab05c2dfcd8 Mon Sep 17 00:00:00 2001 From: INNA Date: Fri, 9 Feb 2024 14:42:25 +0100 Subject: [PATCH] =?UTF-8?q?Test=20Dezimal=20in=20Bin=C3=A4r?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test_decbinary.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/test_decbinary.c b/src/test_decbinary.c index bf9c15b..747220c 100644 --- a/src/test_decbinary.c +++ b/src/test_decbinary.c @@ -1,6 +1,18 @@ -#include "decbinary.h" +#ifdef TEST +#include "decbinary.h" +#include "unity.h" void setUp(void) { } + +void test_decimal_1(void) +{ + int result, expected = 10; + result = decimal_to_binary(2); + + TEST_ASSERT_EQUAL_INT(expected, result); +} + +#endif //TEST \ No newline at end of file