aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testabstractmetatype.cpp
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-11-16 17:41:07 -0200
committerHugo Lima <hugo.lima@openbossa.org>2009-11-16 17:41:07 -0200
commit51608b9e0364932400247f0d5af6605474e0b779 (patch)
treeb04edbcbc4322e3dbcfe85606692bbc48f6cbb83 /tests/testabstractmetatype.cpp
parentc28ad1fcc42821db283b893ea74d54b4d9b85591 (diff)
Fix apiextractor unit tests.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'tests/testabstractmetatype.cpp')
-rw-r--r--tests/testabstractmetatype.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/testabstractmetatype.cpp b/tests/testabstractmetatype.cpp
index 21044a1fc..3e75539fb 100644
--- a/tests/testabstractmetatype.cpp
+++ b/tests/testabstractmetatype.cpp
@@ -43,11 +43,10 @@ void TestAbstractMetaType::testConstCharPtrType()
QVERIFY(!rtype->isArray());
QVERIFY(!rtype->isContainer());
QVERIFY(!rtype->isObject());
- QVERIFY(rtype->isPrimitive());
+ QVERIFY(!rtype->isPrimitive()); // const char* differs from char, so it's not considered a primitive type by apiextractor
QVERIFY(rtype->isNativePointer());
QVERIFY(!rtype->isQObject());
QVERIFY(!rtype->isReference());
- QVERIFY(rtype->isTargetLangChar());
QVERIFY(!rtype->isValue());
QVERIFY(!rtype->isValuePointer());
}
@@ -81,8 +80,7 @@ void TestAbstractMetaType::testCharType()
QVERIFY(!rtype->isNativePointer());
QVERIFY(!rtype->isQObject());
QVERIFY(!rtype->isReference());
- QVERIFY(rtype->isTargetLangChar());
- QVERIFY(rtype->isValue());
+ QVERIFY(!rtype->isValue());
QVERIFY(!rtype->isValuePointer());
}
@@ -133,8 +131,6 @@ void TestAbstractMetaType::testTypedefWithTemplates()
AbstractMetaArgument* arg = args.first();
AbstractMetaType* metaType = arg->type();
QCOMPARE(metaType->cppSignature(), QString("A<B >"));
- qDebug() << metaType->typeEntry()->isContainer();
-// QVERIFY(c->isTypeAlias());
}
QTEST_APPLESS_MAIN(TestAbstractMetaType)