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