20#define BOOST_TEST_NO_MAIN
21#include <boost/test/unit_test.hpp>
35 const int header = 24;
36 const std::vector<int>
rows( 20, 25 );
37 const int fullHeight = header + 20 * 25;
42 BOOST_CHECK_LT( capped, fullHeight );
49 const int header = 24;
50 const std::vector<int>
rows( 2, 25 );
51 const int fullHeight = header + 2 * 25;
62 const int header = 24;
63 const std::vector<int>
rows( 20, 25 );
64 const int fullHeight = header + 20 * 25;
static int CapHeightToVisibleRows(int aMinHeight, int aHeaderHeight, const std::vector< int > &aRowHeights, int aMaxRows)
Height of aMaxRows data rows plus the column-label header, never more than aMinHeight.
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
std::vector< DATABASE_CONNECTION::ROW > rows
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(CapHeightCapsTallGrid)