24#include <boost/test/unit_test.hpp>
53 BOOST_CHECK_EQUAL( deltas.front(), 0 );
54 BOOST_CHECK_EQUAL( deltas.back(), 0 );
56 for(
size_t i = 0; i < deltas.size(); ++i )
125 BOOST_CHECK_EQUAL( deltas.front(), 0 );
126 BOOST_CHECK_EQUAL( deltas.back(), 0 );
128 for(
size_t i = 0; i < deltas.size(); ++i )
138 { 0, 100, 200, 300, 400 },
std::vector< int > GetDeltasForDistributeByGaps(const std::vector< std::pair< int, int > > &aItemExtents)
Given a list of 'n' item spans (e.g.
std::vector< int > GetDeltasForDistributeByPoints(const std::vector< int > &aItemPositions)
Declares the FilletFixture struct as the boost test fixture.
std::vector< std::pair< int, int > > m_extents
std::vector< int > m_expectedDeltas
std::vector< int > m_points
std::vector< int > m_expectedDeltas
static void DoDistributeGapsTestChecks(const DISTRIBUTE_GAPS_TEST_CASE &aTestCase)
static void DoDistributePointsTestChecks(const DISTRIBUTE_POINTS_TEST_CASE &aTestCase)
BOOST_AUTO_TEST_CASE(DistributeGapsNoChangeNeeded)
BOOST_AUTO_TEST_SUITE_END()