https://bugs.kde.org/show_bug.cgi?id=491828
--- Comment #3 from Ralf Habacker <ralf.habac...@freenet.de> ---
(In reply to Ralf Habacker from comment #2)

As the problem here is the call to formatMoney() it may be named better: 

void MyMoneySecurityTest::testFormatMoney()
{
    MyMoneySecurity currency("BTC", "Bitcoin", "BTC", 100000000, 100000000);
    int precision =
MyMoneyMoney::denomToPrec(currency.smallestAccountFraction());
    MyMoneyMoney smallestFraction = MyMoneyMoney::ONE /
MyMoneyMoney(currency.smallestAccountFraction());
    QCOMPARE(smallestFraction.formatMoney(QString(), precision),
QLatin1String("0.00000001"));
}

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to