summaryrefslogtreecommitdiffstats
path: root/tests/testifacerepo.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commitf7959a4e97cdef8152a8bbf4e6d0b69cefea1baa (patch)
tree99affdbf92575f7b6d8cc418f7c0d58d7a9012cf /tests/testifacerepo.cc
parent54dec355e137f1efddb349314aef9bd999d4c3bf (diff)
downloadarts-f7959a4e97cdef8152a8bbf4e6d0b69cefea1baa.tar.gz
arts-f7959a4e97cdef8152a8bbf4e6d0b69cefea1baa.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/arts@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'tests/testifacerepo.cc')
-rw-r--r--tests/testifacerepo.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/testifacerepo.cc b/tests/testifacerepo.cc
index ceb36d3..a5c5962 100644
--- a/tests/testifacerepo.cc
+++ b/tests/testifacerepo.cc
@@ -52,7 +52,7 @@ struct TestInterfaceRepo : public TestCase
testEquals("Arts::AttributeType",def.name);
}
- bool tqcontains(vector<string>& sequence, const string& element)
+ bool contains(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(tqcontains(*interfaces,"Arts::InterfaceRepo"));
- testAssert(!tqcontains(*interfaces,"Arts::MethodDef"));
+ testAssert(contains(*interfaces,"Arts::InterfaceRepo"));
+ testAssert(!contains(*interfaces,"Arts::MethodDef"));
delete interfaces;
}
TEST(queryTypes) {
vector<string> *types = interfaceRepo.queryTypes();
- testAssert(tqcontains(*types,"Arts::MethodDef"));
- testAssert(!tqcontains(*types,"Arts::AttributeType"));
+ testAssert(contains(*types,"Arts::MethodDef"));
+ testAssert(!contains(*types,"Arts::AttributeType"));
delete types;
}
TEST(queryEnums) {
vector<string> *enums = interfaceRepo.queryEnums();
- testAssert(tqcontains(*enums,"Arts::AttributeType"));
- testAssert(!tqcontains(*enums,"Arts::InterfaceRepo"));
+ testAssert(contains(*enums,"Arts::AttributeType"));
+ testAssert(!contains(*enums,"Arts::InterfaceRepo"));
delete enums;
}
};