Hi,
On the page: http://cppunit.sourceforge.net/doc/1.11.6/money_example.html
section "Our first tests", I don't see the difference between:
public:
Money(double amount, std::string currency )
: m_amount( amount )
, m_currency( currency )
{
}
supposed to be bugged, and:
Money(double amount, std::string currency )
: m_amount( amount )
, m_currency( currency )
{
}
supposed to be fixed. Maybe the "bugged version" missed to be bugged ;-)
Proposal: remove the initialization of either "m_amount" or "m_currency"
in the first version, for the unit test to fail.
Regards,
David TYLSKI
|