25#include <boost/test/results_collector.hpp>  
   43    TestNetlist( 
"rectifier" );
 
   44    TestTranPoint( 0, { { 
"V(/in)", 0 }, { 
"V(/out)", 0 } } );
 
   45    TestTranPoint( 9250e-6, { { 
"V(/in)", 5 }, { 
"V(/out)", 4.26 } } );
 
   46    TestTranPoint( 10e-3, { { 
"V(/in)", 0 }, { 
"V(/out)", 4.24 } } );
 
 
   67    TestNetlist( 
"opamp" );
 
   68    TestTranPoint( 0, { { 
"V(/in)", 0 }, { 
"V(/out)", 0 } } );
 
   69    TestTranPoint( 250e-6, { { 
"V(/in)", 500e-3 }, { 
"V(/out)", 1 } } );
 
   70    TestTranPoint( 500e-6, { { 
"V(/in)", 0 }, { 
"V(/out)", 0 } } );
 
   71    TestTranPoint( 750e-6, { { 
"V(/in)", -500e-3 }, { 
"V(/out)", -1 } } );
 
   72    TestTranPoint( 1e-3, { { 
"V(/in)", 0 }, { 
"V(/out)", 0 } } );
 
 
   81    TestNetlist( 
"npn_ce_amp" );
 
   82    TestTranPoint( 900e-6, { { 
"V(/in)", 0 }, { 
"V(/out)", 5.32 } } );
 
   83    TestTranPoint( 925e-6, { { 
"V(/in)", 10e-3 }, { 
"V(/out)", 5.30 } } );
 
   84    TestTranPoint( 950e-6, { { 
"V(/in)", 0 }, { 
"V(/out)", 5.88 } } );
 
   85    TestTranPoint( 975e-6, { { 
"V(/in)", -10e-3 }, { 
"V(/out)", 5.91 } } );
 
   86    TestTranPoint( 1e-3, { { 
"V(/in)", 0 }, { 
"V(/out)", 5.32 } } );
 
 
   94    TestTranPoint( 9.43e-3, { { 
"V(/Vp)", -19e-3 }, { 
"I(Rs1)", 19e-3 } } );
 
   95    TestTranPoint( 9.74e-3, { { 
"V(/Vp)", 19e-3 }, { 
"I(Rs1)", -19e-3 } } );
 
 
  101    TestNetlist( 
"potentiometers" );
 
  102    TestOpPoint( 0.5, 
"V(/out1)" );
 
  103    TestOpPoint( 0.7, 
"V(/out2)" );
 
  104    TestOpPoint( 0.9, 
"V(/out3)" );
 
 
  111    TestNetlist( 
"tlines" );
 
  112    TestTranPoint( 910e-6, { { 
"V(/z0_in)", 1 }, { 
"V(/z0_out)", 0 },
 
  113                             { 
"V(/rlgc_in)", 1 }, { 
"V(/rlgc_out)", 0 } } );
 
  114    TestTranPoint( 970e-6, { { 
"V(/z0_in)", 0 }, { 
"V(/z0_out)", 1 },
 
  115                             { 
"V(/rlgc_in)", 0 }, { 
"V(/rlgc_out)", 1 } } );
 
 
  142    TestNetlist( 
"cmos_not" );
 
  143    TestTranPoint( 0, { { 
"V(/in)", 2.5 }, { 
"V(/out)", 2.64 } } );
 
  144    TestTranPoint( 250e-6, { { 
"V(/in)", 5 }, { 
"V(/out)", 0.013 } } );
 
  145    TestTranPoint( 500e-6, { { 
"V(/in)", 2.5 }, { 
"V(/out)", 2.64 } } );
 
  146    TestTranPoint( 750e-6, { { 
"V(/in)", 0 }, { 
"V(/out)", 5 } } );
 
  147    TestTranPoint( 1e-3, { { 
"V(/in)", 2.5 }, { 
"V(/out)", 2.64 } } );
 
 
  164    TestNetlist( 
"fliege_filter" );
 
  165    TestACPoint( 0.8e3, { { 
"V(/in)", 1 }, { 
"V(/out)", 1 } } );
 
  166    TestACPoint( 1.061e3, { { 
"V(/in)", 1 }, { 
"V(/out)", 0 } } );
 
  167    TestACPoint( 1.2e3, { { 
"V(/in)", 1 }, { 
"V(/out)", 1 } } );
 
 
  174    TestNetlist( 
"switches" );
 
  175    TestTranPoint( 0.5e-3, { { 
"V(/inswv)", 0 }, { 
"V(/outswv)", 0 } } );
 
  176    TestTranPoint( 1.5e-3, { { 
"V(/inswv)", 1 }, { 
"V(/outswv)", 5 } } );
 
  177    TestTranPoint( 2.5e-3, { { 
"V(/inswv)", 0 }, { 
"V(/outswv)", 0 } } );
 
 
  189    TestNetlist( 
"directives" );
 
  190    TestTranPoint( 9.25e-3, { { 
"V(/in)", 1 }, { 
"V(/out)", -900e-3 }, { 
"I(XR1)", 1e-3 } } );
 
  191    TestTranPoint( 9.50e-3, { { 
"V(/in)", 0 }, { 
"V(/out)", 0 }, { 
"I(XR1)", 1e-3 } } );
 
  192    TestTranPoint( 9.75e-3, { { 
"V(/in)", -1 }, { 
"V(/out)", 900e-3 }, { 
"I(XR1)", 1e-3 } } );
 
  193    TestTranPoint( 10e-3,    { { 
"V(/in)", 0 }, { 
"V(/out)", 0 }, { 
"I(XR1)", 1e-3 } } );
 
  205    TestNetlist( 
"legacy_laser_driver" );
 
  211    TestTranPoint( 95e-9, { { 
"I(D1)", 0 } } );
 
  213    TestTranPoint( 110e-9, { { 
"I(D1)", 0.770 } }, 0.1 );
 
  215    TestTranPoint( 150e-9, { { 
"I(D1)", 0 } } );
 
  221    TestNetlist( 
"legacy_pot" );
 
  222    TestOpPoint( 0.5, 
"V(/out1)" );
 
  223    TestOpPoint( 0.7, 
"V(/out2)" );
 
  224    TestOpPoint( 0.9, 
"V(/out3)" );
 
 
  230    TestNetlist( 
"legacy_pspice" );
 
  231    TestACPoint( 190, { { 
"V(/VIN)", pow( 10, -186e-3 / 20 ) },
 
  232                        { 
"V(VOUT)", pow( 10, 87e-3 / 20 ) } } );
 
 
  239    TestNetlist( 
"legacy_rectifier" );
 
  240    TestTranPoint( 0, { { 
"V(/signal_in)", 0 },
 
  241                        { 
"V(/rect_out)", 0 } } );
 
  242    TestTranPoint( 9.75e-3, { { 
"V(/signal_in)", 1.5 },
 
  243                              { 
"V(/rect_out)", 823e-3 } } );
 
 
  250    TestNetlist( 
"legacy_sallen_key" );
 
  255    TestACPoint( 1, { { 
"V(/lowpass)", pow( 10, 0.0 / 20 ) } } );
 
  256    TestACPoint( 1e3, { { 
"V(/lowpass)", pow( 10, -2.9 / 20 ) } } );
 
 
  280    TestNetlist( 
"legacy_opamp" );
 
  281    TestTranPoint( 0, { { 
"V(/in)", 0 }, { 
"V(/out)", 0 } } );
 
  282    TestTranPoint( 250e-6, { { 
"V(/in)", 500e-3 }, { 
"V(/out)", 1 } } );
 
  283    TestTranPoint( 500e-6, { { 
"V(/in)", 0 }, { 
"V(/out)", 0 } } );
 
  284    TestTranPoint( 750e-6, { { 
"V(/in)", -500e-3 }, { 
"V(/out)", -1 } } );
 
  285    TestTranPoint( 1e-3, { { 
"V(/in)", 0 }, { 
"V(/out)", 0 } } );
 
 
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
 
std::vector< FAB_LAYER_COLOR > dummy
 
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
 
BOOST_AUTO_TEST_SUITE_END()
 
BOOST_AUTO_TEST_CASE(Rectifier)