summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-12-31 23:53:28 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-12-31 23:53:28 +0000
commitbf3bdf1468c5264a57b6aac343f8c7d1a50de848 (patch)
tree661c955b7e81b2f207d0f5ee01f1e389738ff4fe /tests
parent3aaef8e61de684af6ced2951ab2391cd104e0d4c (diff)
downloadarts-bf3bdf1468c5264a57b6aac343f8c7d1a50de848.tar.gz
arts-bf3bdf1468c5264a57b6aac343f8c7d1a50de848.zip
Automated conversion
aRts now compiles with TQt for Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/arts@1210526 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'tests')
-rw-r--r--tests/testifacerepo.cc14
-rw-r--r--tests/testwrapper.cc2
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/testifacerepo.cc b/tests/testifacerepo.cc
index a5c5962..ceb36d3 100644
--- a/tests/testifacerepo.cc
+++ b/tests/testifacerepo.cc
@@ -52,7 +52,7 @@ struct TestInterfaceRepo : public TestCase
testEquals("Arts::AttributeType",def.name);
}
- bool contains(vector<string>& sequence, const string& element)
+ bool tqcontains(vector<string>& sequence, const string& element)
{
vector<string>::iterator it;
it = find(sequence.begin(),sequence.end(), element);
@@ -61,22 +61,22 @@ struct TestInterfaceRepo : public TestCase
TEST(queryInterfaces) {
vector<string> *interfaces = interfaceRepo.queryInterfaces();
- testAssert(contains(*interfaces,"Arts::InterfaceRepo"));
- testAssert(!contains(*interfaces,"Arts::MethodDef"));
+ testAssert(tqcontains(*interfaces,"Arts::InterfaceRepo"));
+ testAssert(!tqcontains(*interfaces,"Arts::MethodDef"));
delete interfaces;
}
TEST(queryTypes) {
vector<string> *types = interfaceRepo.queryTypes();
- testAssert(contains(*types,"Arts::MethodDef"));
- testAssert(!contains(*types,"Arts::AttributeType"));
+ testAssert(tqcontains(*types,"Arts::MethodDef"));
+ testAssert(!tqcontains(*types,"Arts::AttributeType"));
delete types;
}
TEST(queryEnums) {
vector<string> *enums = interfaceRepo.queryEnums();
- testAssert(contains(*enums,"Arts::AttributeType"));
- testAssert(!contains(*enums,"Arts::InterfaceRepo"));
+ testAssert(tqcontains(*enums,"Arts::AttributeType"));
+ testAssert(!tqcontains(*enums,"Arts::InterfaceRepo"));
delete enums;
}
};
diff --git a/tests/testwrapper.cc b/tests/testwrapper.cc
index 9be8c35..a5279a8 100644
--- a/tests/testwrapper.cc
+++ b/tests/testwrapper.cc
@@ -157,7 +157,7 @@ struct TestWrapper : public TestCase
d.value(6);
testEquals(1, active_d_objects);
- b = d; // uses operator, not constructor. should invalidate A::cacheOK
+ b = d; // uses operator, not constructor. should tqinvalidate A::cacheOK
testEquals(6, b.value());
testEquals(1, active_d_objects);