summaryrefslogtreecommitdiffstats
path: root/lilo-config/common/tests
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 20:34:22 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-18 20:34:22 +0000
commitb09bffed6b43262948018dfb0f11890850ddf7c1 (patch)
tree138696bfcc7ac01070d0e8ecaa1cdf94611a2bd8 /lilo-config/common/tests
parent6d43944a7130b9d1b4ae3fba37b774aced8612cf (diff)
downloadtdeadmin-b09bffed6b43262948018dfb0f11890850ddf7c1.tar.gz
tdeadmin-b09bffed6b43262948018dfb0f11890850ddf7c1.zip
TQt4 port kdeadmin
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1237416 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lilo-config/common/tests')
-rw-r--r--lilo-config/common/tests/String.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/lilo-config/common/tests/String.cc b/lilo-config/common/tests/String.cc
index 7b0b60e..cfd9744 100644
--- a/lilo-config/common/tests/String.cc
+++ b/lilo-config/common/tests/String.cc
@@ -54,20 +54,20 @@ int main(int argc, char **argv)
cerr << "regex() seems to be broken." << endl;
bugs++;
}
- if(!s.contains("Red Hat")) {
- cerr << "contains() seems to be broken." << endl;
+ if(!s.tqcontains("Red Hat")) {
+ cerr << "tqcontains() seems to be broken." << endl;
bugs++;
}
- if(t.replace("Microsoft", "Windows", false) != "Windows sucks! Destroy Microsoft! Microsoft must die!") {
- cerr << "replace() [once] seems to be broken." << endl;
+ if(t.tqreplace("Microsoft", "Windows", false) != "Windows sucks! Destroy Microsoft! Microsoft must die!") {
+ cerr << "tqreplace() [once] seems to be broken." << endl;
bugs++;
}
- if(t.replace("Microsoft", "Windows") != "Windows sucks! Destroy Windows! Windows must die!") {
- cerr << "replace() [all] seems to be broken." << endl;
+ if(t.tqreplace("Microsoft", "Windows") != "Windows sucks! Destroy Windows! Windows must die!") {
+ cerr << "tqreplace() [all] seems to be broken." << endl;
bugs++;
}
- if(u.replace("Microsoft", "Windows") != "Windows sucks!") {
- cerr << "replace() [all, test case 2] seems to be broken." << endl;
+ if(u.tqreplace("Microsoft", "Windows") != "Windows sucks!") {
+ cerr << "tqreplace() [all, test case 2] seems to be broken." << endl;
bugs++;
}