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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Luigi Ballabio

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
Reply | Threaded
Open this post in threaded view
|

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

Ferdinando M. Ametrano-3
On Wed, Feb 6, 2008 at 5:20 PM, Luigi Ballabio <[hidden email]> wrote:
>  Ehm... is this supposed to fail at every loop? Shouldn't the error be in
>  the "if" clause?

Ooops, I reverted the change back to the original code. Sorry.
It escapes me why I committed that wrong change at all... with no
comments.. it must be the excessive confidence I get from knowing
you're watching over me :-)

ciao -- Nando

-------------------------------------------------------------------------
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