Пример #1
0
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));
}
Пример #2
0
static void test_assert_false_fail(void)
{
    bool x = true;
    NP_ASSERT_FALSE(x);
}