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 6 // See http://www.boost.org/libs/test for the library home page. 7 8 //[example_code 9 #define BOOST_TEST_MODULE example 10 #include <boost/test/included/unit_test.hpp> 11 #include <utility> 12 13 14 typedef std::pair<int,float> pair_type; 15 16 BOOST_TEST_DONT_PRINT_LOG_VALUE( pair_type ) 17 BOOST_AUTO_TEST_CASE(test_list)18BOOST_AUTO_TEST_CASE( test_list ) 19 { 20 pair_type p1( 2, 5.5f ); 21 pair_type p2( 2, 5.501f ); 22 23 BOOST_CHECK_EQUAL( p1, p2 ); 24 } 25 //] 26