22#include <boost/test/unit_test.hpp>
47 const VECTOR2I corners[] = { { 0, 0 }, { unit, 0 }, { unit, unit }, { 0, unit } };
53 for(
int edge = 0; edge < 4; ++edge )
58 VECTOR2I start = corners[edge] + offset;
71 for(
int arc = 0; arc < 2; ++arc )
76 const int offsetX = arc * 4 * unit;
108 for(
size_t i = 0; i < items.size(); ++i )
constexpr EDA_IU_SCALE gerbIUScale
static double square(double x)
VECTOR2I GetABPosition(const VECTOR2I &aXYPosition) const
Return the image position of aPosition for this object.
VECTOR2I GetXYPosition(const VECTOR2I &aABPosition) const
Return the image position of aPosition for this object.
GBR_BASIC_SHAPE_TYPE m_ShapeType
Hold the image data and parameters for one gerber file and layer parameters.
std::vector< GERBER_DRAW_ITEM * > GERBER_DRAW_ITEMS
std::string GetTestDataRootDir()
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_CASE(DecimalModeDoesNotLeakBetweenAxes)
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()
VECTOR3I expected(15, 30, 45)
BOOST_TEST_CONTEXT("Test Clearance")
VECTOR2< int32_t > VECTOR2I