Ticket #3023: minmax.patch

File minmax.patch, 1.3 KB (added by Richard Webb <richard.webb@…>, 13 years ago)
  • minmax_test.cpp

     
    5454  less_count<Value> lc(counter);
    5555
    5656  // Test functionality
    57   tuple<Value const&, Value const&> result1 = minmax(zero, one);
     57  tuple<Value const&, Value const&> result1 = boost::minmax(zero, one);
    5858  BOOST_CHECK_EQUAL( get<0>(result1), zero );
    5959  BOOST_CHECK_EQUAL( get<1>(result1), one );
    6060
    61   tuple<Value const&, Value const&> result2 = minmax(one, zero);
     61  tuple<Value const&, Value const&> result2 = boost::minmax(one, zero);
    6262  BOOST_CHECK_EQUAL( get<0>(result2), zero );
    6363  BOOST_CHECK_EQUAL( get<1>(result2), one );
    6464 
    6565  // Test functionality and number of comparisons
    6666  lc.reset();
    67   tuple<Value const&, Value const&> result3 = minmax(zero, one, lc );
     67  tuple<Value const&, Value const&> result3 = boost::minmax(zero, one, lc );
    6868  BOOST_CHECK_EQUAL( get<0>(result3), zero );
    6969  BOOST_CHECK_EQUAL( get<1>(result3), one );
    7070  BOOST_CHECK_EQUAL( counter, 1 );
    7171
    7272  lc.reset();
    73   tuple<Value const&, Value const&> result4 = minmax(one, zero, lc );
     73  tuple<Value const&, Value const&> result4 = boost::minmax(one, zero, lc );
    7474  BOOST_CHECK_EQUAL( get<0>(result4), zero );
    7575  BOOST_CHECK_EQUAL( get<1>(result4), one );
    7676  BOOST_CHECK_EQUAL( counter, 1);