string s3 = convert<string>(12.34567, cnv(std::scientific)(std::setprecision(3))).value();
string expected = local::is_msc ? "1.235e+001" : "1.235e+01";
- BOOST_TEST(i2 == 123); // boost::cnv::cstream. Successfull conversion of " 123".
+ BOOST_TEST(i2 == 123); // boost::cnv::cstream. Successful conversion of " 123".
BOOST_TEST(s1 == "12.34567"); // boost::lexical_cast. Precision is not configurable.
BOOST_TEST(s2 == "12.346"); // boost::cnv::cstream. Precision was set to 3. Fixed.
BOOST_TEST(s3 == expected); // boost::cnv::cstream. Precision was set to 3. Scientific.