Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/mymoney/tests/mymoneyforecast-test.cpp
Context not available. | |||||
52 | this->moT3 = MyMoneyMoney(84, 1); | 52 | this->moT3 = MyMoneyMoney(84, 1); | ||
---|---|---|---|---|---|
53 | this->moT4 = MyMoneyMoney(62, 1); | 53 | this->moT4 = MyMoneyMoney(62, 1); | ||
54 | this->moT5 = MyMoneyMoney(104, 1); | 54 | this->moT5 = MyMoneyMoney(104, 1); | ||
55 | } catch (const MyMoneyException & e) { | 55 | } catch (const MyMoneyException &e) { | ||
56 | qDebug() << e.what(); | 56 | qDebug() << e.what(); | ||
57 | } | 57 | } | ||
58 | } | 58 | } | ||
Context not available. | |||||
287 | try { | 287 | try { | ||
288 | MyMoneyForecast::calculateAccountTrend(a_checking, 0); | 288 | MyMoneyForecast::calculateAccountTrend(a_checking, 0); | ||
289 | } catch (const MyMoneyException &e) { | 289 | } catch (const MyMoneyException &e) { | ||
290 | QVERIFY(e.what().compare("Illegal arguments when calling calculateAccountTrend. trendDays must be higher than 0") == 0); | 290 | QVERIFY(e.what().startsWith("Illegal arguments when calling calculateAccountTrend. trendDays must be higher than 0")); | ||
291 | } | 291 | } | ||
292 | try { | 292 | try { | ||
293 | MyMoneyForecast::calculateAccountTrend(a_checking, -10); | 293 | MyMoneyForecast::calculateAccountTrend(a_checking, -10); | ||
294 | } catch (const MyMoneyException &e) { | 294 | } catch (const MyMoneyException &e) { | ||
295 | QVERIFY(e.what().compare("Illegal arguments when calling calculateAccountTrend. trendDays must be higher than 0") == 0); | 295 | QVERIFY(e.what().startsWith("Illegal arguments when calling calculateAccountTrend. trendDays must be higher than 0")); | ||
296 | } | 296 | } | ||
297 | 297 | | |||
298 | //test that it calculates correctly | 298 | //test that it calculates correctly | ||
Context not available. |