Skip to content
Snippets Groups Projects
Commit 66e02011 authored by hjk's avatar hjk
Browse files

debugger: add some bits to the manual tests

parent 4d9900a1
No related branches found
No related tags found
No related merge requests found
...@@ -901,17 +901,17 @@ void testStdList() ...@@ -901,17 +901,17 @@ void testStdList()
void testStdMap() void testStdMap()
{ {
#if 0
std::map<QString, Foo> gg3; std::map<QString, Foo> gg3;
gg3["22.0"] = Foo(22); gg3["22.0"] = Foo(22);
gg3["33.0"] = Foo(33); gg3["33.0"] = Foo(33);
gg3["44.0"] = Foo(44); gg3["44.0"] = Foo(44);
std::map<const char *, Foo> m1; std::map<const char *, Foo> m1;
m1["22.0"] = Foo(22); m1["22.0"] = Foo(22);
m1["33.0"] = Foo(33); m1["33.0"] = Foo(33);
m1["44.0"] = Foo(44); m1["44.0"] = Foo(44);
#if 1
std::map<uint, uint> gg; std::map<uint, uint> gg;
gg[11] = 1; gg[11] = 1;
gg[22] = 2; gg[22] = 2;
...@@ -919,9 +919,11 @@ void testStdMap() ...@@ -919,9 +919,11 @@ void testStdMap()
gg[44] = 4; gg[44] = 4;
gg[55] = 5; gg[55] = 5;
#endif std::pair<uint, QStringList> p = std::make_pair(3, QStringList() << "11");
std::vector< std::pair<uint, QStringList> > v;
v.push_back(p);
v.push_back(p);
#if 0
std::map<uint, QStringList> ggl; std::map<uint, QStringList> ggl;
ggl[11] = QStringList() << "11"; ggl[11] = QStringList() << "11";
ggl[22] = QStringList() << "22"; ggl[22] = QStringList() << "22";
...@@ -944,7 +946,9 @@ void testStdMap() ...@@ -944,7 +946,9 @@ void testStdMap()
std::map<int, QString> gg2; std::map<int, QString> gg2;
gg2[22] = "22.0"; gg2[22] = "22.0";
#endif
#if 1
QObject ob; QObject ob;
std::map<QString, QPointer<QObject> > map; std::map<QString, QPointer<QObject> > map;
map["Hallo"] = QPointer<QObject>(&ob); map["Hallo"] = QPointer<QObject>(&ob);
...@@ -1522,7 +1526,7 @@ int testReference() ...@@ -1522,7 +1526,7 @@ int testReference()
{ {
QString a = "hello"; QString a = "hello";
const QString &b = fooxx(); const QString &b = fooxx();
QString c = "world"; const QString c = "world";
return a.size() + b.size() + c.size(); return a.size() + b.size() + c.size();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment