Re: Re: accrualAmount() function within the bond class...

Posted by Joseph Wang on
URL: http://quantlib.414.s1.nabble.com/Problem-within-the-Bond-YieldSolver-class-tp4278p4288.html

A few questions:

1) Would anyone object if I went into the code and did some refactoring
to make the logic more obvious?  I was thinking in particular of
creating a private method - bool couponIssued(int i)

2) Any thoughts on making QL_TODAYS_DATE a parameter which is settable.  
I was thinking that this would make unit tests easier to write since you
can then run the bond class under both conditions.

3) Anyone have a test case coded up to put into the unit test framework?