|
From: Steven W. <ste...@us...> - 2007-04-09 16:53:31
|
Update of /cvsroot/boost-sandbox/boost-sandbox/libs/units/test In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9855/boost-sandbox/libs/units/test Modified Files: test_conversion.cpp Log Message: Added test for simple heterogeneous, dimensionless conversions Index: test_conversion.cpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/libs/units/test/test_conversion.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- test_conversion.cpp 3 Apr 2007 20:48:07 -0000 1.3 +++ test_conversion.cpp 9 Apr 2007 16:53:00 -0000 1.4 @@ -93,6 +93,11 @@ //quantity<SI::force> F6 = 20 * CGS::dyne; + + + bu::quantity<bu::SI::dimensionless> dimensionless_test(1.0*bu::CGS::dyne/bu::SI::newton); + BOOST_CHECK(dimensionless_test == 1e-5); + return(0); } |