Browse Source

Test Dezimal in Binär

master
INNA 11 months ago
parent
commit
a49472693d
  1. 14
      src/test_decbinary.c

14
src/test_decbinary.c

@ -1,6 +1,18 @@
#include "decbinary.h"
#ifdef TEST
#include "decbinary.h"
#include "unity.h"
void setUp(void) 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
Loading…
Cancel
Save