Use default error limits. They're already relative to the value.
This commit is contained in:
parent
323bec4adc
commit
232e4d34f1
|
@ -101,8 +101,8 @@ BOOST_FIXTURE_TEST_CASE( ImmediateSBCKT, TEST_SIM_REGRESSIONS_FIXTURE )
|
||||||
m_SaveCurrents = false;
|
m_SaveCurrents = false;
|
||||||
|
|
||||||
TestNetlist( "issue13431" );
|
TestNetlist( "issue13431" );
|
||||||
TestTranPoint( 0.005, { { "V(/soft_start)", 2.489 } }, 0.001 );
|
TestTranPoint( 0.005, { { "V(/soft_start)", 2.489 } } );
|
||||||
TestTranPoint( 0.012, { { "V(/soft_start)", 5.100 } }, 0.001 );
|
TestTranPoint( 0.012, { { "V(/soft_start)", 5.100 } } );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -111,8 +111,8 @@ BOOST_FIXTURE_TEST_CASE( LegacyFixups, TEST_SIM_REGRESSIONS_FIXTURE )
|
||||||
LOCALE_IO dummy;
|
LOCALE_IO dummy;
|
||||||
|
|
||||||
TestNetlist( "issue13112" );
|
TestNetlist( "issue13112" );
|
||||||
TestTranPoint( 0.01, { { "V(out)", -0.060 } }, 0.001 );
|
TestTranPoint( 0.01, { { "V(out)", -0.060 } } );
|
||||||
TestTranPoint( 0.02, { { "V(out)", 0.856 } }, 0.001 );
|
TestTranPoint( 0.02, { { "V(out)", 0.856 } } );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -121,8 +121,8 @@ BOOST_FIXTURE_TEST_CASE( DualNMOSAmp, TEST_SIM_REGRESSIONS_FIXTURE )
|
||||||
LOCALE_IO dummy;
|
LOCALE_IO dummy;
|
||||||
|
|
||||||
TestNetlist( "issue13162" );
|
TestNetlist( "issue13162" );
|
||||||
TestTranPoint( 0.030, { { "V(out)", 0.535 } }, 0.001 );
|
TestTranPoint( 0.030, { { "V(out)", 0.535 } } );
|
||||||
TestTranPoint( 0.035, { { "V(out)", -1.437 } }, 0.001 );
|
TestTranPoint( 0.035, { { "V(out)", -1.437 } } );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -228,6 +228,7 @@ public:
|
||||||
<< ", Actual value: " << yVector[i] )
|
<< ", Actual value: " << yVector[i] )
|
||||||
{
|
{
|
||||||
double maxError = abs( refValue * aMaxRelError );
|
double maxError = abs( refValue * aMaxRelError );
|
||||||
|
|
||||||
if( maxError == 0 )
|
if( maxError == 0 )
|
||||||
{
|
{
|
||||||
// If refValue is 0, we need a obtain the max. error differently.
|
// If refValue is 0, we need a obtain the max. error differently.
|
||||||
|
|
Loading…
Reference in New Issue