30#include <boost/test/unit_test.hpp>
64 VECTOR2I stepX = items[1]->GetPosition() - items[0]->GetPosition();
69 for(
int row = 0; row < 5; ++row )
71 for(
int col = 0; col < 7; ++col )
73 int i = row * 8 + col;
74 BOOST_CHECK( ( items[i + 1]->GetPosition() - items[i]->GetPosition() ) == stepX );
80 VECTOR2I rowStep = items[8]->GetPosition() - items[0]->GetPosition();
86 VECTOR2I stepY = items[41]->GetPosition() - items[40]->GetPosition();
89 BOOST_CHECK( ( items[42]->GetPosition() - items[41]->GetPosition() ) == stepY );
90 BOOST_CHECK( ( items[43]->GetPosition() - items[42]->GetPosition() ) == stepY );
std::vector< GERBER_DRAW_ITEM * > GERBER_DRAW_ITEMS
std::string GetTestDataRootDir()
EDA_ANGLE abs(const EDA_ANGLE &aAngle)
management of default values used to read a Excellon (.nc) drill file Some important parameters are n...
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_CHECK(res.column_datatype(0)==SQL_NUMERIC||res.column_datatype(0)==SQL_DECIMAL)
BOOST_REQUIRE_EQUAL(rows.size(), 1)
BOOST_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
BOOST_REQUIRE(res.columns()==1)
BOOST_AUTO_TEST_SUITE_END()
VECTOR2< int32_t > VECTOR2I