fix for trac issue #12814, including a new test for the issue

This commit is contained in:
hans.dembinski@gmail.com
2017-02-05 19:06:21 +00:00
parent e647763fb0
commit cdee8e76c5
2 changed files with 42 additions and 0 deletions

View File

@@ -65,10 +65,15 @@ int main()
BOOST_TEST_EQ( ++x, ++y );
BOOST_TEST_EQ( x++, y++ );
const char* s1 = "abc"; // make sure addresses are different
const char* s2 = "abc"; // make sure addresses are different
BOOST_TEST_EQ(s1, s2);
// BOOST_TEST_NE
BOOST_TEST_NE( ++x, y );
BOOST_TEST_NE( &x, &y );
BOOST_TEST_NE( "abc", "ABC" );
// BOOST_TEST_THROWS