41BOOST_FIXTURE_TEST_SUITE( UnitConversion,
UnitFixture )
65 BOOST_CHECK_EQUAL( strZero,
"0 0" );
68 BOOST_CHECK_EQUAL( str,
"12.3456 5252.5252" );
69 BOOST_CHECK_EQUAL( strNeg,
"-12.3456 -5252.5252" );
70 BOOST_CHECK_EQUAL( strMax,
"-214748.3648 214748.3647" );
71 BOOST_CHECK_EQUAL( strOddNeg,
"-35 0" );
73 BOOST_CHECK_EQUAL( str,
"1.23456 525.25252" );
74 BOOST_CHECK_EQUAL( strNeg,
"-1.23456 -525.25252" );
75 BOOST_CHECK_EQUAL( strMax,
"-21474.83648 21474.83647" );
76 BOOST_CHECK_EQUAL( strOddNeg,
"-3.5 0" );
78 BOOST_CHECK_EQUAL( str,
"0.123456 52.525252" );
79 BOOST_CHECK_EQUAL( strNeg,
"-0.123456 -52.525252" );
80 BOOST_CHECK_EQUAL( strMax,
"-2147.483648 2147.483647" );
81 BOOST_CHECK_EQUAL( strOddNeg,
"-0.35 0" );
constexpr EDA_IU_SCALE schIUScale
constexpr EDA_IU_SCALE pcbIUScale
constexpr EDA_IU_SCALE gerbIUScale
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
KICOMMON_API std::string FormatInternalUnits(const EDA_IU_SCALE &aIuScale, int aValue)
Converts aValue from internal units to a string appropriate for writing to file.
BOOST_AUTO_TEST_SUITE_END()
VECTOR2< int32_t > VECTOR2I