summaryrefslogtreecommitdiffstats
path: root/kmymoney2/mymoney/mymoneypricetest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/mymoney/mymoneypricetest.cpp')
-rw-r--r--kmymoney2/mymoney/mymoneypricetest.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kmymoney2/mymoney/mymoneypricetest.cpp b/kmymoney2/mymoney/mymoneypricetest.cpp
index 203e9ca..444754a 100644
--- a/kmymoney2/mymoney/mymoneypricetest.cpp
+++ b/kmymoney2/mymoney/mymoneypricetest.cpp
@@ -39,23 +39,23 @@ void MyMoneyPriceTest::testDefaultConstructor()
void MyMoneyPriceTest::testConstructor()
{
- MyMoneyPrice n(QString("from"), QString("to"), QDate(2005,9,23), MyMoneyMoney(1,3), QString("MySource"));
+ MyMoneyPrice n(TQString("from"), TQString("to"), TQDate(2005,9,23), MyMoneyMoney(1,3), TQString("MySource"));
CPPUNIT_ASSERT(n.isValid() == true);
- CPPUNIT_ASSERT(n.from() == QString("from"));
- CPPUNIT_ASSERT(n.to() == QString("to"));
- CPPUNIT_ASSERT(n.date() == QDate(2005,9,23));
- CPPUNIT_ASSERT(n.source() == QString("MySource"));
+ CPPUNIT_ASSERT(n.from() == TQString("from"));
+ CPPUNIT_ASSERT(n.to() == TQString("to"));
+ CPPUNIT_ASSERT(n.date() == TQDate(2005,9,23));
+ CPPUNIT_ASSERT(n.source() == TQString("MySource"));
CPPUNIT_ASSERT(n.rate("to") == MyMoneyMoney(1,3));
}
void MyMoneyPriceTest::testValidity()
{
- QString emptyId;
- MyMoneyPrice n1(emptyId, QString("to"), QDate(2005,9,23), MyMoneyMoney(1,3), QString("MySource"));
- MyMoneyPrice n2(QString("from"), emptyId, QDate(2005,9,23), MyMoneyMoney(1,3), QString("MySource"));
- MyMoneyPrice n3(QString("from"), QString("to"), QDate(), MyMoneyMoney(1,3), QString("MySource"));
- MyMoneyPrice n4(QString("from"), QString("to"), QDate(2005,9,23), MyMoneyMoney(1,3), QString("MySource"));
+ TQString emptyId;
+ MyMoneyPrice n1(emptyId, TQString("to"), TQDate(2005,9,23), MyMoneyMoney(1,3), TQString("MySource"));
+ MyMoneyPrice n2(TQString("from"), emptyId, TQDate(2005,9,23), MyMoneyMoney(1,3), TQString("MySource"));
+ MyMoneyPrice n3(TQString("from"), TQString("to"), TQDate(), MyMoneyMoney(1,3), TQString("MySource"));
+ MyMoneyPrice n4(TQString("from"), TQString("to"), TQDate(2005,9,23), MyMoneyMoney(1,3), TQString("MySource"));
CPPUNIT_ASSERT(n1.isValid() == false);
CPPUNIT_ASSERT(n2.isValid() == false);
@@ -65,13 +65,13 @@ void MyMoneyPriceTest::testValidity()
void MyMoneyPriceTest::testRate()
{
- MyMoneyPrice n1(QString("from"), QString("to"), QDate(2005,9,23), MyMoneyMoney(1,3), QString("MySource"));
- MyMoneyPrice n2(QString("from"), QString("to"), QDate(), MyMoneyMoney(1,3), QString("MySource"));
+ MyMoneyPrice n1(TQString("from"), TQString("to"), TQDate(2005,9,23), MyMoneyMoney(1,3), TQString("MySource"));
+ MyMoneyPrice n2(TQString("from"), TQString("to"), TQDate(), MyMoneyMoney(1,3), TQString("MySource"));
try {
CPPUNIT_ASSERT(n1.rate("to") == MyMoneyMoney(1,3));
CPPUNIT_ASSERT(n1.rate("from") == MyMoneyMoney(3,1));
- CPPUNIT_ASSERT(n1.rate(QString()) == MyMoneyMoney(1,3));
+ CPPUNIT_ASSERT(n1.rate(TQString()) == MyMoneyMoney(1,3));
CPPUNIT_ASSERT(n2.isValid() == false);
CPPUNIT_ASSERT(n2.rate("to") == MyMoneyMoney(1,1));