35#include <boost/test/unit_test.hpp>
40#include <boost/test/tools/floating_point_comparison.hpp>
41#include <boost/test/unit_test.hpp>
53 unsigned int curRow = 0;
54 unsigned int curColumn = 0;
56 BOOST_CHECK_EQUAL(1u, curRow);
57 BOOST_CHECK_EQUAL(1u, curColumn);
60 BOOST_CHECK_EQUAL(2u, curRow);
61 BOOST_CHECK_EQUAL(2u, curColumn);
64 BOOST_CHECK_EQUAL(3u, curRow);
65 BOOST_CHECK_EQUAL(3u, curColumn);
68 BOOST_CHECK_EQUAL(std::numeric_limits<unsigned int>::max(), curRow);
69 BOOST_CHECK_EQUAL(std::numeric_limits<unsigned int>::max(), curColumn);
74 unsigned int curRow = 0;
75 unsigned int curColumn = 0;
77 BOOST_CHECK_EQUAL(std::numeric_limits<unsigned int>::max(), curRow);
78 BOOST_CHECK_EQUAL(std::numeric_limits<unsigned int>::max(), curColumn);
DiagonalMatrixFuncs Policy
BOOST_AUTO_TEST_CASE(TestAdvanceDiagonal)
void RedirectCerrIfNeeded()
static std::tuple< unsigned int, unsigned int > Advance(const unsigned int totalRows, const unsigned int totalColumns, const unsigned int curRow, const unsigned int curColumn)