Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/mymoney/tests/mymoneytransactionfilter-test.cpp
Show First 20 Lines • Show All 529 Lines • ▼ Show 20 Line(s) | 491 | { | |||
---|---|---|---|---|---|
530 | MyMoneyTransaction transaction2; | 530 | MyMoneyTransaction transaction2; | ||
531 | transaction2.setPostDate(QDate(2014, 1, 2)); | 531 | transaction2.setPostDate(QDate(2014, 1, 2)); | ||
532 | transaction2.addSplit(split4); | 532 | transaction2.addSplit(split4); | ||
533 | 533 | | |||
534 | filter.setReportAllSplits(true); | 534 | filter.setReportAllSplits(true); | ||
535 | QVERIFY(!filter.match(transaction2)); | 535 | QVERIFY(!filter.match(transaction2)); | ||
536 | QCOMPARE(filter.matchingSplits(transaction2).size(), 0); | 536 | QCOMPARE(filter.matchingSplits(transaction2).size(), 0); | ||
537 | 537 | | |||
538 | qDebug() << "tags on categories could not be tested"; | 538 | filter.setCheckSplitsInCategories(true); | ||
539 | QVERIFY(filter.match(transaction2)); | ||||
tbaumgart: Looks like this did not get updated after renaming. I get
error: ‘class… | |||||
540 | QCOMPARE(filter.matchingSplits(transaction2).size(), 1); | ||||
539 | } | 541 | } | ||
540 | 542 | | |||
541 | void MyMoneyTransactionFilterTest::testMatchTransactionTypeAllTypes() | 543 | void MyMoneyTransactionFilterTest::testMatchTransactionTypeAllTypes() | ||
542 | { | 544 | { | ||
543 | /* | 545 | /* | ||
544 | alltypes | 546 | alltypes | ||
545 | - account group == MyMoneyAccount::Income || | 547 | - account group == MyMoneyAccount::Income || | ||
546 | - account group == MyMoneyAccount::Expense | 548 | - account group == MyMoneyAccount::Expense | ||
▲ Show 20 Lines • Show All 245 Lines • Show Last 20 Lines |
Looks like this did not get updated after renaming. I get
error: ‘class MyMoneyTransactionFilter’ has no member named ‘setCheckSplitsInCategories’