| 1762 | |
| 1763 | template <int comparison, typename L, typename R> |
| 1764 | DOCTEST_NOINLINE bool binary_assert(assertType::Enum at, const char* file, int line, |
| 1765 | const char* expr, const DOCTEST_REF_WRAP(L) lhs, |
| 1766 | const DOCTEST_REF_WRAP(R) rhs) { |
| 1767 | bool failed = !RelationalComparator<comparison, L, R>()(lhs, rhs); |
| 1768 | |
| 1769 | // ################################################################################### |
| 1770 | // IF THE DEBUGGER BREAKS HERE - GO 1 LEVEL UP IN THE CALLSTACK FOR THE FAILING ASSERT |
| 1771 | // THIS IS THE EFFECT OF HAVING 'DOCTEST_CONFIG_SUPER_FAST_ASSERTS' DEFINED |
| 1772 | // ################################################################################### |
| 1773 | DOCTEST_ASSERT_OUT_OF_TESTS(stringifyBinaryExpr(lhs, ", ", rhs)); |
| 1774 | DOCTEST_ASSERT_IN_TESTS(stringifyBinaryExpr(lhs, ", ", rhs)); |
| 1775 | return !failed; |
| 1776 | } |
| 1777 | |
| 1778 | template <typename L> |
| 1779 | DOCTEST_NOINLINE bool unary_assert(assertType::Enum at, const char* file, int line, |
nothing calls this directly
no test coverage detected