35 const wxString& aKey );
71 {
"0",
"10000", 250 },
72 {
"1",
"10000", 2790 },
76 {
"0",
"-1000", -30 },
77 {
"0",
"-10000", -250 },
78 {
"-1",
"-10000", -2790 },
93 wxString::Format( wxT(
"%s FRAC %s -> %i" ), c.input, c.input_frac, c.exp_result ) )
95 std::map<wxString, wxString> properties = { {
"TEST", c.input },
96 {
"TEST_FRAC", c.input_frac } };
101 BOOST_CHECK_EQUAL( result, c.exp_result );
ALTIUM_PARSER_SCH_FIXTURE()
Declares the struct as the Boost test fixture.
static const std::vector< ALTIUM_TO_KICAD_UNIT_FRAC_CASE > altium_to_kicad_unit_frac
A list of valid internal unit conversation factors.
int ReadKiCadUnitFrac(const std::map< wxString, wxString > &aProps, const wxString &aKey)
BOOST_AUTO_TEST_CASE(PropertiesReadKiCadUnitFracConversation)
Test conversation from Altium internal units into KiCad internal units using properties with FRAC.
BOOST_AUTO_TEST_SUITE_END()