Opened 9 years ago

Closed 7 years ago

#8635 closed Patches (wontfix)

Missing some macros in Boost Test library

Reported by: Valentin Shtronda <valiko.ua@…> Owned by: Gennadiy Rozental
Milestone: To Be Determined Component: test
Version: Boost 1.53.0 Severity: Problem
Keywords: Cc:

Description

Boost Test library does not have _MESSAGE variants of BOOST_WARN_EQUAL, BOOST_CHECK_EQUAL and BOOST_REQUIRE_EQUAL macros. They are especially useful for printing:

  1. iteration in loops;
  2. full object if some fields are not equal.

Simple patch for boost 1.53 introducing the following macros is attached:

  BOOST_WARN_EQUAL_MESSAGE
  BOOST_CHECK_EQUAL_MESSAGE
  BOOST_REQUIRE_EQUAL_MESSAGE

Attachments (1)

boost_test_1_53_0.patch (1.5 KB ) - added by Valentin Shtronda <valiko.ua@…> 9 years ago.
Patch for boost 1.53 introducing macros BOOST_WARN_EQUAL_MESSAGE,BOOST_CHECK_EQUAL_MESSAGE and BOOST_REQUIRE_EQUAL_MESSAGE.

Download all attachments as: .zip

Change History (2)

by Valentin Shtronda <valiko.ua@…>, 9 years ago

Attachment: boost_test_1_53_0.patch added

Patch for boost 1.53 introducing macros BOOST_WARN_EQUAL_MESSAGE,BOOST_CHECK_EQUAL_MESSAGE and BOOST_REQUIRE_EQUAL_MESSAGE.

comment:1 by Gennadiy Rozental, 7 years ago

Resolution: wontfix
Status: newclosed

Please use BOOST_TEST_INFO, BOOST_TEST_CONTEXT instead

Note: See TracTickets for help on using tickets.