2 #include "test_ReadWriteBits.h"
3 #include "ReadWriteBits.h"
4 void SetBit_sets_bit_in_register(
void)
9 TEST_ASSERT_BIT_LOW_MESSAGE(
12 "Cannot run test: must start with low bit in port!"
16 TEST_ASSERT_BIT_HIGH(bit, port);
18 void ClearBit_clears_bit_in_register(
void)
23 TEST_ASSERT_BIT_HIGH_MESSAGE(
26 "Cannot run test: must start with high bit in port!"
31 TEST_ASSERT_BIT_LOW(bit, port);
33 void BitIsSet_returns_true_if_bit_is_set(
void)
39 TEST_ASSERT_TRUE(BitIsSet(&port, bit));
41 void BitIsSet_returns_false_if_bit_is_clear(
void)
47 TEST_ASSERT_FALSE(BitIsSet(&port, bit));
49 void BitIsClear_returns_true_if_bit_is_clear(
void)
55 TEST_ASSERT_TRUE(BitIsClear(&port, bit));
57 void BitIsClear_returns_false_if_bit_is_set(
void)
63 TEST_ASSERT_FALSE(BitIsClear(&port, bit));