You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
476 B
32 lines
476 B
#ifdef TEST
|
|
|
|
#include "unity.h"
|
|
|
|
#include "helloWorld.h"
|
|
|
|
extern uint8_t Jill;
|
|
extern uint8_t Jung;
|
|
extern uint8_t Jukk;
|
|
|
|
void setUp(void)
|
|
{
|
|
Jill = 0x00;
|
|
Jung = 0xFF;
|
|
Jukk = 0x00;
|
|
}
|
|
|
|
void tearDown(void)
|
|
{
|
|
}
|
|
|
|
void test_math_do_bit_man_0(void)
|
|
{
|
|
int8_t result;
|
|
result = do_bit_man( 15 );
|
|
TEST_ASSERT_EQUAL_INT8( -1, result );
|
|
TEST_ASSERT_EQUAL_INT8( 0x00, Jill );
|
|
TEST_ASSERT_EQUAL_INT8( 0xFF, Jung );
|
|
TEST_ASSERT_EQUAL_INT8( 0x00, Jukk );
|
|
}
|
|
|
|
#endif // TEST
|