20#include <boost/test/unit_test.hpp>
47 constexpr long long bridging = 3'000LL *
static_cast<long long>(
pcbIUScale.IU_PER_PS );
49 BOOST_CHECK_GT( bridging,
static_cast<long long>( std::numeric_limits<int>::max() ) );
52 target.
SetMin( 1'000'000'000 );
53 target.
SetMax( 1'200'000'000 );
65 target.
SetMin( 100'000'000 );
66 target.
SetMax( 120'000'000 );
92 constexpr long long bridging = 500'000'000'000'000LL;
94 long long truncated =
static_cast<long long>(
static_cast<int>( bridging ) );
96 BOOST_CHECK_NE( truncated, bridging );
99 target.
SetMin( 2'000'000'000 );
110 target.
SetMin( 100'000'000 );
111 target.
SetOpt( 110'000'000 );
112 target.
SetMax( 120'000'000 );
120 BOOST_CHECK_LE( target.
Min(), target.
Opt() );
121 BOOST_CHECK_LE( target.
Opt(), target.
Max() );
128 target.
SetMin( 1'000'000'000 );
129 target.
SetOpt( 1'100'000'000 );
130 target.
SetMax( 1'200'000'000 );
132 constexpr long long bridging = 3'000LL *
static_cast<long long>(
pcbIUScale.IU_PER_PS );
constexpr EDA_IU_SCALE pcbIUScale
int SubtractBridgingClamped(int aValue, long long aDelta)
Saturating subtract for bridge-adjusting MINOPTMAX<int> bounds without overflow when the delta is in ...
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
BOOST_AUTO_TEST_SUITE_END()
static void applyBridging(MINOPTMAX< int > &aTarget, long long aBridgingIU)
BOOST_AUTO_TEST_CASE(TimeDomainAttosecondsClampsToZero)