[Cppunit-devel] Money example: there is no bug in the constructor, while expected to be
Brought to you by:
blep
From: CppUnit d. m. l. <cpp...@li...> - 2010-01-27 18:06:27
|
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 |