aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/tests/testdroptypeentries.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/ApiExtractor/tests/testdroptypeentries.cpp')
-rw-r--r--sources/shiboken2/ApiExtractor/tests/testdroptypeentries.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/sources/shiboken2/ApiExtractor/tests/testdroptypeentries.cpp b/sources/shiboken2/ApiExtractor/tests/testdroptypeentries.cpp
index 6abebb922..7b3da182f 100644
--- a/sources/shiboken2/ApiExtractor/tests/testdroptypeentries.cpp
+++ b/sources/shiboken2/ApiExtractor/tests/testdroptypeentries.cpp
@@ -66,10 +66,12 @@ static const char* xmlCode = "\
void TestDropTypeEntries::testDropEntries()
{
- QStringList droppedEntries(QLatin1String("Foo.ValueB"));
- droppedEntries << QLatin1String("Foo.ObjectB") << QLatin1String("Foo.NamespaceA.InnerClassA");
- droppedEntries << QLatin1String("Foo.NamespaceB") << QLatin1String("Foo.EnumB") << QLatin1String("Foo.funcB()");
- droppedEntries << QLatin1String("Foo.NamespaceA.InnerNamespaceA");
+ const QStringList droppedEntries{QLatin1String("Foo.ValueB"),
+ QLatin1String("ObjectB"), // Check whether module can be omitted
+ QLatin1String("Foo.NamespaceA.InnerClassA"),
+ QLatin1String("Foo.NamespaceB"), QLatin1String("Foo.EnumB"),
+ QLatin1String("Foo.funcB()"),
+ QLatin1String("Foo.NamespaceA.InnerNamespaceA")};
QScopedPointer<AbstractMetaBuilder> builder(TestUtil::parse(cppCode, xmlCode, false,
QString(), droppedEntries));
QVERIFY(!builder.isNull());