11 #include "CLHEP/Units/defs.h"
12 #include "CLHEP/Units/PhysicalConstants.h"
25 for (
int i=0; i<7; i++, m++) { assert(m ==
double(i)); }
26 assert(m != CLHEP::meter);
32 std::ostringstream os1, os2, os3, os4;
33 os1 << std::setprecision(8) << CLHEP::c_light;
35 if( os1.str() != os2.str() ) {
36 std::cout <<
"compare --" << os1.str() <<
"-- to --" << os2.str() <<
"--" << std::endl;
39 os3 << std::setprecision(16) << CLHEP::pi ;
40 os4 <<
"3.141592653589793";
41 if( os3.str() != os4.str() ) {
43 std::cout <<
"compare --" << os3.str() <<
"--" << std::endl;
44 std::cout <<
" to --" << os4.str() <<
"--" << std::endl;
46 std::cout <<
"M_PI --" << std::setprecision(16) << M_PI <<
"--" << std::endl;