24 {
25
26 int nbad=0;
27
28
29
30 double m=0;
31 for (int i=0; i<7; i++, m++) { assert(m == double(i)); }
32 assert(m != CLHEP::meter);
33
34
35
36
37
38 std::ostringstream os1, os2, os3, os4;
39 os1 << std::setprecision(8) << CLHEP::c_light;
40 os2 << "299.79246";
41 if( os1.str() != os2.str() ) {
42 std::cout << "compare --" << os1.str() << "-- to --" << os2.str() << "--" << std::endl;
43 nbad++;
44 }
45 os3 << std::setprecision(16) << CLHEP::pi ;
46 os4 << "3.141592653589793";
47 if( os3.str() != os4.str() ) {
48 nbad++;
49 std::cout << "compare --" << os3.str() << "--" << std::endl;
50 std::cout << " to --" << os4.str() << "--" << std::endl;
51 std::cout << "M_PI --" << std::setprecision(16) << M_PI << "--" << std::endl;
52 }
53
54 return nbad;
55
56}