Re: [QuantLib-svn] SF.net SVN: quantlib: [14294] trunk/QuantLib/test-suite/marketmodel.cpp

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Re-QuantLib-svn-SF-net-SVN-quantlib-14294-trunk-QuantLib-test-suite-marketmodel-cpp-tp11601.html


On Wed, 2008-02-06 at 07:33 -0800, [hidden email] wrote:

> 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
the "if" clause?

Luigi



--

Never mistake motion for action.
-- Ernest Hemingway



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev