summaryrefslogtreecommitdiffstats
path: root/kmymoney2/mymoney/mymoneysecuritytest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/mymoney/mymoneysecuritytest.cpp')
-rw-r--r--kmymoney2/mymoney/mymoneysecuritytest.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kmymoney2/mymoney/mymoneysecuritytest.cpp b/kmymoney2/mymoney/mymoneysecuritytest.cpp
index 77b6764..72911db 100644
--- a/kmymoney2/mymoney/mymoneysecuritytest.cpp
+++ b/kmymoney2/mymoney/mymoneysecuritytest.cpp
@@ -51,7 +51,7 @@ void MyMoneySecurityTest::testCopyConstructor() {
}
void MyMoneySecurityTest::testNonemptyConstructor() {
- QDate date(2004,4,1);
+ TQDate date(2004,4,1);
MyMoneyMoney val("1234/100");
m->setName("name");
@@ -61,8 +61,8 @@ void MyMoneySecurityTest::testNonemptyConstructor() {
MyMoneySecurity n("id", *m);
- CPPUNIT_ASSERT(n.id() == QString("id"));
- CPPUNIT_ASSERT(n.tradingSymbol() == QString("symbol"));
+ CPPUNIT_ASSERT(n.id() == TQString("id"));
+ CPPUNIT_ASSERT(n.tradingSymbol() == TQString("symbol"));
CPPUNIT_ASSERT(n.securityType() == MyMoneySecurity::SECURITY_CURRENCY);
// CPPUNIT_ASSERT(n.priceHistory().count() == 1);
}
@@ -173,8 +173,8 @@ void MyMoneySecurityTest::testInequality () {
/*
void MyMoneySecurityTest::testAccountIDList () {
MyMoneySecurity equity;
- QStringList list;
- QString id;
+ TQStringList list;
+ TQString id;
// list must be empty
list = institution.accountList();
@@ -184,26 +184,26 @@ void MyMoneySecurityTest::testAccountIDList () {
institution.addAccountId("A000002");
list = institution.accountList();
CPPUNIT_ASSERT(list.count() == 1);
- CPPUNIT_ASSERT(list.contains("A000002") == 1);
+ CPPUNIT_ASSERT(list.tqcontains("A000002") == 1);
// adding same account shouldn't make a difference
institution.addAccountId("A000002");
list = institution.accountList();
CPPUNIT_ASSERT(list.count() == 1);
- CPPUNIT_ASSERT(list.contains("A000002") == 1);
+ CPPUNIT_ASSERT(list.tqcontains("A000002") == 1);
// now add another account
institution.addAccountId("A000001");
list = institution.accountList();
CPPUNIT_ASSERT(list.count() == 2);
- CPPUNIT_ASSERT(list.contains("A000002") == 1);
- CPPUNIT_ASSERT(list.contains("A000001") == 1);
+ CPPUNIT_ASSERT(list.tqcontains("A000002") == 1);
+ CPPUNIT_ASSERT(list.tqcontains("A000001") == 1);
id = institution.removeAccountId("A000001");
CPPUNIT_ASSERT(id == "A000001");
list = institution.accountList();
CPPUNIT_ASSERT(list.count() == 1);
- CPPUNIT_ASSERT(list.contains("A000002") == 1);
+ CPPUNIT_ASSERT(list.tqcontains("A000002") == 1);
}
*/