Lines Matching full:b
313 * @brief Assert that @a a equals @a b
315 * @a a and @a b won't be converted and will be compared directly.
318 * @param b Value to compare
321 #define zassert_equal(a, b, ...) zassert((a) == (b), #a " not equal to " #b, ##__VA_ARGS__) argument
324 * @brief Assert that @a a does not equal @a b
326 * @a a and @a b won't be converted and will be compared directly.
329 * @param b Value to compare
332 #define zassert_not_equal(a, b, ...) zassert((a) != (b), #a " equal to " #b, ##__VA_ARGS__) argument
335 * @brief Assert that @a a equals @a b
337 * @a a and @a b will be converted to `void *` before comparing.
340 * @param b Value to compare
343 #define zassert_equal_ptr(a, b, ...) \ argument
344 zassert((void *)(a) == (void *)(b), #a " not equal to " #b, ##__VA_ARGS__)
347 * @brief Assert that @a a is within @a b with delta @a d
350 * @param b Value to compare
354 #define zassert_within(a, b, d, ...) \ argument
355 zassert(((a) >= ((b) - (d))) && ((a) <= ((b) + (d))), #a " not within " #b " +/- " #d, \
482 * @brief Assume that @a a equals @a b
484 * @a a and @a b won't be converted and will be compared directly. If the
488 * @param b Value to compare
491 #define zassume_equal(a, b, ...) zassume((a) == (b), #a " not equal to " #b, ##__VA_ARGS__) argument
494 * @brief Assume that @a a does not equal @a b
496 * @a a and @a b won't be converted and will be compared directly. If the
500 * @param b Value to compare
503 #define zassume_not_equal(a, b, ...) zassume((a) != (b), #a " equal to " #b, ##__VA_ARGS__) argument
506 * @brief Assume that @a a equals @a b
508 * @a a and @a b will be converted to `void *` before comparing. If the
512 * @param b Value to compare
515 #define zassume_equal_ptr(a, b, ...) \ argument
516 zassume((void *)(a) == (void *)(b), #a " not equal to " #b, ##__VA_ARGS__)
519 * @brief Assume that @a a is within @a b with delta @a d
524 * @param b Value to compare
528 #define zassume_within(a, b, d, ...) \ argument
529 zassume(((a) >= ((b) - (d))) && ((a) <= ((b) + (d))), #a " not within " #b " +/- " #d, \
650 * @brief Expect that @a a equals @a b, otherwise mark test as failed but continue its execution.
653 * @param b Value to compare
656 #define zexpect_equal(a, b, ...) zexpect((a) == (b), #a " not equal to " #b, ##__VA_ARGS__) argument
659 * @brief Expect that @a a does not equal @a b, otherwise mark test as failed but continue its
662 * @a a and @a b won't be converted and will be compared directly.
665 * @param b Value to compare
668 #define zexpect_not_equal(a, b, ...) zexpect((a) != (b), #a " equal to " #b, ##__VA_ARGS__) argument
671 * @brief Expect that @a a equals @a b, otherwise mark test as failed but continue its execution.
673 * @a a and @a b will be converted to `void *` before comparing.
676 * @param b Value to compare
679 #define zexpect_equal_ptr(a, b, ...) \ argument
680 zexpect((void *)(a) == (void *)(b), #a " not equal to " #b, ##__VA_ARGS__)
683 * @brief Expect that @a a is within @a b with delta @a d, otherwise mark test as failed but
687 * @param b Value to compare
688 * @param delta Difference between a and b
691 #define zexpect_within(a, b, delta, ...) \ argument
692 zexpect(((a) >= ((b) - (delta))) && ((a) <= ((b) + (delta))), \
693 #a " not within " #b " +/- " #delta, ##__VA_ARGS__)