diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:56:17 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:56:17 -0600 |
commit | 1f9d00360b9018301630ce062d7dda0c6583edfb (patch) | |
tree | 1013b917f9a8ad41ed928d62250e9bfe1ed91414 /kmymoney2/converter/convertertest.cpp | |
parent | 252fce5a2a5384702fbcc1c9987284d7bd2e6943 (diff) | |
download | kmymoney-1f9d00360b9018301630ce062d7dda0c6583edfb.tar.gz kmymoney-1f9d00360b9018301630ce062d7dda0c6583edfb.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 252fce5a2a5384702fbcc1c9987284d7bd2e6943.
Diffstat (limited to 'kmymoney2/converter/convertertest.cpp')
-rw-r--r-- | kmymoney2/converter/convertertest.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kmymoney2/converter/convertertest.cpp b/kmymoney2/converter/convertertest.cpp index bbe0ec4..739c6f3 100644 --- a/kmymoney2/converter/convertertest.cpp +++ b/kmymoney2/converter/convertertest.cpp @@ -112,8 +112,8 @@ void ConverterTest::testWebQuotes() CPPUNIT_ASSERT(qr.m_errors.count() == 0); // Quote date should be within the last week, or something bad is going on. - CPPUNIT_ASSERT(qr.m_date <= TQDate::currentDate()); - CPPUNIT_ASSERT(qr.m_date >= TQDate::currentDate().addDays(-7)); + CPPUNIT_ASSERT(qr.m_date <= TQDate::tqcurrentDate()); + CPPUNIT_ASSERT(qr.m_date >= TQDate::tqcurrentDate().addDays(-7)); // Quote value should at least be positive CPPUNIT_ASSERT(qr.m_price.isPositive()); @@ -123,8 +123,8 @@ void ConverterTest::testWebQuotes() // kdDebug(2) << "ConverterTest::testWebQuotes(): quote for " << q.m_symbol << " on " << qr.m_date.toString() << " is " << qr.m_price.toString() << " errors(" << qr.m_errors.count() << "): " << qr.m_errors.join(" /// ") << endl; CPPUNIT_ASSERT(qr.m_errors.count() == 0); - CPPUNIT_ASSERT(qr.m_date <= TQDate::currentDate().addDays(1)); - CPPUNIT_ASSERT(qr.m_date >= TQDate::currentDate().addDays(-7)); + CPPUNIT_ASSERT(qr.m_date <= TQDate::tqcurrentDate().addDays(1)); + CPPUNIT_ASSERT(qr.m_date >= TQDate::tqcurrentDate().addDays(-7)); CPPUNIT_ASSERT(qr.m_price.isPositive()); q.launch("EUR > USD","Yahoo Currency"); @@ -132,8 +132,8 @@ void ConverterTest::testWebQuotes() // kdDebug(2) << "ConverterTest::testWebQuotes(): quote for " << q.m_symbol << " on " << qr.m_date.toString() << " is " << qr.m_price.toString() << " errors(" << qr.m_errors.count() << "): " << qr.m_errors.join(" /// ") << endl; CPPUNIT_ASSERT(qr.m_errors.count() == 0); - CPPUNIT_ASSERT(qr.m_date <= TQDate::currentDate().addDays(1)); - CPPUNIT_ASSERT(qr.m_date >= TQDate::currentDate().addDays(-7)); + CPPUNIT_ASSERT(qr.m_date <= TQDate::tqcurrentDate().addDays(1)); + CPPUNIT_ASSERT(qr.m_date >= TQDate::tqcurrentDate().addDays(-7)); CPPUNIT_ASSERT(qr.m_price.isPositive()); q.launch("50492","Globe & Mail"); @@ -141,8 +141,8 @@ void ConverterTest::testWebQuotes() // kdDebug(2) << "ConverterTest::testWebQuotes(): quote for " << q.m_symbol << " on " << qr.m_date.toString() << " is " << qr.m_price.toString() << " errors(" << qr.m_errors.count() << "): " << qr.m_errors.join(" /// ") << endl; CPPUNIT_ASSERT(qr.m_errors.count() == 0); - CPPUNIT_ASSERT(qr.m_date <= TQDate::currentDate().addDays(1)); - CPPUNIT_ASSERT(qr.m_date >= TQDate::currentDate().addDays(-7)); + CPPUNIT_ASSERT(qr.m_date <= TQDate::tqcurrentDate().addDays(1)); + CPPUNIT_ASSERT(qr.m_date >= TQDate::tqcurrentDate().addDays(-7)); CPPUNIT_ASSERT(qr.m_price.isPositive()); q.launch("TDB647","MSN.CA"); @@ -150,8 +150,8 @@ void ConverterTest::testWebQuotes() // kdDebug(2) << "ConverterTest::testWebQuotes(): quote for " << q.m_symbol << " on " << qr.m_date.toString() << " is " << qr.m_price.toString() << " errors(" << qr.m_errors.count() << "): " << qr.m_errors.join(" /// ") << endl; CPPUNIT_ASSERT(qr.m_errors.count() == 0); - CPPUNIT_ASSERT(qr.m_date <= TQDate::currentDate().addDays(1)); - CPPUNIT_ASSERT(qr.m_date >= TQDate::currentDate().addDays(-7)); + CPPUNIT_ASSERT(qr.m_date <= TQDate::tqcurrentDate().addDays(1)); + CPPUNIT_ASSERT(qr.m_date >= TQDate::tqcurrentDate().addDays(-7)); CPPUNIT_ASSERT(qr.m_price.isPositive()); } |