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

11 months ago
  1. #ifdef TEST
  2. #include "unity.h"
  3. #include "helloWorld.h"
  4. extern uint8_t Jill;
  5. extern uint8_t Jung;
  6. extern uint8_t Jukk;
  7. void setUp(void)
  8. {
  9. Jill = 0x00;
  10. Jung = 0xFF;
  11. Jukk = 0x00;
  12. }
  13. void tearDown(void)
  14. {
  15. }
  16. void test_math_do_bit_man_0(void)
  17. {
  18. int8_t result;
  19. result = do_bit_man( 15 );
  20. TEST_ASSERT_EQUAL_INT8( -1, result );
  21. TEST_ASSERT_EQUAL_INT8( 0x00, Jill );
  22. TEST_ASSERT_EQUAL_INT8( 0xFF, Jung );
  23. TEST_ASSERT_EQUAL_INT8( 0x00, Jukk );
  24. }
  25. #endif // TEST