summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-11-21 13:24:23 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-21 08:30:22 +0100
commitd8ac62c6ecf66fb1d3a862d401ad08c1858e9984 (patch)
tree3f78bde2505ca23b7ae8cb2916ec7e4c9f0d9ec2 /tests
parent72c36332c1232c669d65dfa251325f0bdef1db3e (diff)
Restore commented-out code in QHash test.
The restored code verifies the following statement in the documentation of QHash::find(): "If the hash contains no item with the key, the function returns end()." It is not clear why the code was commented-out in the first place, as this occurred before the tests were imported into the Qt repository in 2006. Change-Id: I745393a8e3e728fc60009da07abd038a3d56e99c Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/tools/qhash/tst_qhash.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/tools/qhash/tst_qhash.cpp b/tests/auto/corelib/tools/qhash/tst_qhash.cpp
index 6e668c33f5..249924aecb 100644
--- a/tests/auto/corelib/tools/qhash/tst_qhash.cpp
+++ b/tests/auto/corelib/tools/qhash/tst_qhash.cpp
@@ -594,7 +594,7 @@ void tst_QHash::find()
QString compareString;
int i,count=0;
- //QVERIFY(map1.find(1) == map1.end());
+ QVERIFY(map1.find(1) == map1.end());
map1.insert(1,"Mensch");
map1.insert(1,"Mayer");