void test_r_bit_is_set (void) { unsigned char test_value[24] = { '\0' }; test_value[1] = R_REQUEST (MAP_OPCODE); NP_ASSERT_FALSE (r_bit_is_set (test_value)); test_value[1] = R_RESPONSE (MAP_OPCODE); NP_ASSERT_TRUE (r_bit_is_set (test_value)); }
static void test_assert_false_fail(void) { bool x = true; NP_ASSERT_FALSE(x); }