@@ -415,38 +415,38 @@ namespace detail
415415// re-evaluated inside CHECK_UNARY so doctest records the expression text;
416416// this requires the operands to be side-effect-free, which holds for all
417417// call sites here.
418- #define CHECK_BATCH_EQ (b1, b2 ) \
419- do \
420- { \
418+ #define CHECK_BATCH_EQ (b1, b2 ) \
419+ do \
420+ { \
421421 const bool batches_are_near = ::detail::expect_batch_near (b1, b2); \
422- if (!batches_are_near) \
423- { \
424- auto _ctx1 = ::detail::make_context_info (#b1, b1); \
425- auto _ctx2 = ::detail::make_context_info (#b2, b2); \
426- CHECK_UNARY (::detail::expect_batch_near (b1, b2)); \
427- } \
422+ if (!batches_are_near) \
423+ { \
424+ auto _ctx1 = ::detail::make_context_info (#b1, b1); \
425+ auto _ctx2 = ::detail::make_context_info (#b2, b2); \
426+ CHECK_UNARY (::detail::expect_batch_near (b1, b2)); \
427+ } \
428428 } while (0 )
429- #define CHECK_SCALAR_EQ (s1, s2 ) \
430- do \
431- { \
429+ #define CHECK_SCALAR_EQ (s1, s2 ) \
430+ do \
431+ { \
432432 const bool scalars_are_near = ::detail::expect_scalar_near (s1, s2); \
433- if (!scalars_are_near) \
434- { \
435- auto _ctx1 = ::detail::make_context_info (#s1, s1); \
436- auto _ctx2 = ::detail::make_context_info (#s2, s2); \
437- CHECK_UNARY (::detail::expect_scalar_near (s1, s2)); \
438- } \
433+ if (!scalars_are_near) \
434+ { \
435+ auto _ctx1 = ::detail::make_context_info (#s1, s1); \
436+ auto _ctx2 = ::detail::make_context_info (#s2, s2); \
437+ CHECK_UNARY (::detail::expect_scalar_near (s1, s2)); \
438+ } \
439439 } while (0 )
440- #define CHECK_VECTOR_EQ (v1, v2 ) \
441- do \
442- { \
440+ #define CHECK_VECTOR_EQ (v1, v2 ) \
441+ do \
442+ { \
443443 const bool vectors_are_near = ::detail::expect_vector_near (v1, v2); \
444- if (!vectors_are_near) \
445- { \
446- auto _ctx1 = ::detail::make_context_info (#v1, v1); \
447- auto _ctx2 = ::detail::make_context_info (#v2, v2); \
448- CHECK_UNARY (::detail::expect_vector_near (v1, v2)); \
449- } \
444+ if (!vectors_are_near) \
445+ { \
446+ auto _ctx1 = ::detail::make_context_info (#v1, v1); \
447+ auto _ctx2 = ::detail::make_context_info (#v2, v2); \
448+ CHECK_UNARY (::detail::expect_vector_near (v1, v2)); \
449+ } \
450450 } while (0 )
451451
452452/* **********************
0 commit comments