http://quantlib.414.s1.nabble.com/Re-QuantLib-svn-SF-net-SVN-quantlib-14294-trunk-QuantLib-test-suite-marketmodel-cpp-tp11601.html
> Revision: 14294
>
http://quantlib.svn.sourceforge.net/quantlib/?rev=14294&view=rev> Author: nando
> Date: 2008-02-06 07:33:10 -0800 (Wed, 06 Feb 2008)
>
> Modified Paths:
> --------------
> trunk/QuantLib/test-suite/marketmodel.cpp
>
> Modified: trunk/QuantLib/test-suite/marketmodel.cpp
> ===================================================================
> @@ -1224,19 +1224,21 @@
>
> for (Size i=0; i < numberBigRates; ++i) {
> if (fabs(capletErrorsInSds[i]) > capletTolerance) {
> - BOOST_FAIL(io::ordinal(i+1) << "caplet , approx price " <<
> - approxCapletPrices[i] <<
> - ", \t simulation price " << results[i] <<
> - ", \t error in sds " << capletErrorsInSds[i]);
> + BOOST_MESSAGE(io::ordinal(i+1) << "caplet , approx price " <<
> + approxCapletPrices[i] <<
> + ", \t simulation price " << results[i] <<
> + ", \t error in sds " << capletErrorsInSds[i]);
> }
> + BOOST_ERROR("test failed");
Ehm... is this supposed to fail at every loop? Shouldn't the error be in
Never mistake motion for action.
Defy all challenges. Microsoft(R) Visual Studio 2008.