example32.run-fail.cpp 607 B

12345678910111213141516171819202122232425
  1. // (C) Copyright Gennadiy Rozental 2011-2015.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. // See http://www.boost.org/libs/test for the library home page.
  6. //[example_code
  7. #define BOOST_TEST_MODULE example
  8. #include <boost/test/included/unit_test.hpp>
  9. #include <utility>
  10. typedef std::pair<int,float> pair_type;
  11. BOOST_TEST_DONT_PRINT_LOG_VALUE( pair_type )
  12. BOOST_AUTO_TEST_CASE( test_list )
  13. {
  14. pair_type p1( 2, 5.5f );
  15. pair_type p2( 2, 5.501f );
  16. BOOST_CHECK_EQUAL( p1, p2 );
  17. }
  18. //]