summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/macros/tests/komacrotestbase.h
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/plugins/macros/tests/komacrotestbase.h')
-rw-r--r--kexi/plugins/macros/tests/komacrotestbase.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/kexi/plugins/macros/tests/komacrotestbase.h b/kexi/plugins/macros/tests/komacrotestbase.h
index d423e086..e301730d 100644
--- a/kexi/plugins/macros/tests/komacrotestbase.h
+++ b/kexi/plugins/macros/tests/komacrotestbase.h
@@ -27,11 +27,11 @@
*/
#define KOMACROTEST_ASSERT(actual, expected) \
{ \
- std::cout << QString("Testing: %1 == %2").arg(#actual).arg(#expected).latin1() << std::endl; \
+ std::cout << TQString("Testing: %1 == %2").tqarg(#actual).tqarg(#expected).latin1() << std::endl; \
check( __FILE__, __LINE__, #actual, actual, expected, false ); \
if(actual != expected) \
{ \
- kdWarning() << QString("==============> FAILED") << endl; \
+ kdWarning() << TQString("==============> FAILED") << endl; \
return; \
} \
}
@@ -44,11 +44,11 @@
*/
#define KOMACROTEST_XASSERT(actual, notexpected) \
{ \
- std::cout << QString("Testing: %1 != %2").arg(#actual).arg(#notexpected).latin1() << std::endl; \
+ std::cout << TQString("Testing: %1 != %2").tqarg(#actual).tqarg(#notexpected).latin1() << std::endl; \
check( __FILE__, __LINE__, #actual, actual, notexpected, true ); \
if(actual == notexpected) \
{ \
- kdWarning() << QString("==============> FAILED") << endl; \
+ kdWarning() << TQString("==============> FAILED") << endl; \
return; \
} \
}
@@ -70,11 +70,11 @@
setExceptionRaised(true); \
} \
if(exceptionRaised()) { \
- success(QString(__FILE__) + "[" + QString::number(__LINE__) + "]: passed " + #expression); \
+ success(TQString(__FILE__) + "[" + TQString::number(__LINE__) + "]: passed " + #expression); \
setExceptionRaised(false); \
} \
else { \
- failure(QString(__FILE__) + "[" + QString::number(__LINE__) + QString("]: failed to throw an exception on: ") + #expression); \
+ failure(TQString(__FILE__) + "[" + TQString::number(__LINE__) + TQString("]: failed to throw an exception on: ") + #expression); \
return; \
} \
}
@@ -84,7 +84,7 @@
//Used more tha once at various places
//names of variables from testaction
namespace KoMacroTest {
- static const QString TESTSTRING = "teststring";
- static const QString TESTINT = "testint";
- static const QString TESTBOOL = "testbool";
+ static const TQString TESTSTRING = "teststring";
+ static const TQString TESTINT = "testint";
+ static const TQString TESTBOOL = "testbool";
}