2#include <boost/test/unit_test.hpp>
29 const auto libPath = tempLib.
CreateChildDir(
"extruded_body_roundtrip.pretty" );
30 const auto savePath = libPath /
"extruded_body_roundtrip.kicad_mod";
73 const auto libPath = tempLib.
CreateChildDir(
"extruded_body_defaults_roundtrip.pretty" );
74 const auto savePath = libPath /
"extruded_body_defaults_roundtrip.kicad_mod";
90 BOOST_CHECK_CLOSE( lb->
m_offset.
x, 0.0, 0.01 );
91 BOOST_CHECK_CLOSE( lb->
m_offset.
y, 0.0, 0.01 );
92 BOOST_CHECK_CLOSE( lb->
m_offset.
z, 0.0, 0.01 );
93 BOOST_CHECK_CLOSE( lb->
m_scale.
x, 1.0, 0.01 );
94 BOOST_CHECK_CLOSE( lb->
m_scale.
y, 1.0, 0.01 );
95 BOOST_CHECK_CLOSE( lb->
m_scale.
z, 1.0, 0.01 );
110 const auto libPath = tempLib.
CreateChildDir(
"extruded_body_none_roundtrip.pretty" );
111 const auto savePath = libPath /
"extruded_body_none_roundtrip.kicad_mod";
constexpr EDA_IU_SCALE pcbIUScale
General utilities for PCB file IO for QA programs.
EXTRUSION_MATERIAL m_material
A color representation with 4 components: red, green, blue, alpha.
static const COLOR4D UNSPECIFIED
For legacy support; used as a value to indicate color hasn't been set yet.
std::filesystem::path CreateChildDir(const wxString &aName) const
Create and return the path to a direct child directory.
A logical library item identifier and consists of various portions much like a URI.
EXTRUDED_3D_BODY * MutableExtruded()
void DumpFootprintToFile(const FOOTPRINT &aFootprint, const std::filesystem::path &aLibraryPath)
Same as DumpBoardToFile, but for footprints.
std::unique_ptr< FOOTPRINT > ReadFootprintFromFile(const std::filesystem::path &aFilename, const wxString &aFootprintName)
Read a footprint object aFootprintName from aFileName.
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_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
BOOST_REQUIRE(res.columns()==1)
BOOST_AUTO_TEST_CASE(FullRoundTrip)
BOOST_AUTO_TEST_SUITE_END()
VECTOR3< double > VECTOR3D