From d8ac62c6ecf66fb1d3a862d401ad08c1858e9984 Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Mon, 21 Nov 2011 13:24:23 +1000 Subject: [PATCH] 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 --- tests/auto/corelib/tools/qhash/tst_qhash.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/corelib/tools/qhash/tst_qhash.cpp b/tests/auto/corelib/tools/qhash/tst_qhash.cpp index 6e668c3..249924a 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"); -- 2.7.4