diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-10-31 13:09:08 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-31 06:59:24 +0100 |
commit | 665c9390d0b6759fb52a584cebc08e993451039f (patch) | |
tree | c8538041a106eebf875707b2a145930163ca1294 /tests/auto/integrationtests/collections/tst_collections.cpp | |
parent | 7698cd375030eb0fb879a4ef47a551206f9f8823 (diff) |
Remove tests for API that never made it into Qt.
Change-Id: If78d82abfb4ff3402eb8f36729bacc3c4d343d0c
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/integrationtests/collections/tst_collections.cpp')
-rw-r--r-- | tests/auto/integrationtests/collections/tst_collections.cpp | 106 |
1 files changed, 0 insertions, 106 deletions
diff --git a/tests/auto/integrationtests/collections/tst_collections.cpp b/tests/auto/integrationtests/collections/tst_collections.cpp index f09ff06234..a4901942bf 100644 --- a/tests/auto/integrationtests/collections/tst_collections.cpp +++ b/tests/auto/integrationtests/collections/tst_collections.cpp @@ -1631,65 +1631,6 @@ void tst_Collections::hash() QCOMPARE(hash2.size(), 10); QCOMPARE(hash2.values(), hash1.values() + hash1.values()); } - -#if 0 - { - QMultiHash<QString, int> hash1; - hash1.insert("1", 2); - hash1.insert("1", 1); - hash1.insert("a", 3); - hash1.insert("a", 2); - hash1.insert("a", 1); - hash1.insert("b", 2); - hash1.insert("b", 1); - - // hash1: [ "1" -> 1, "1" -> 2, "a" -> 1, "a" -> 2, "a" -> 3, "b" -> 1, "b" -> 2 ] - - QHashIterator<QString, int> i1(hash1); - i1.toBack(); - - bool found; - - found = i1.findPreviousKey("1"); - QVERIFY(found && i1.value() == 2); - - found = i1.findPreviousKey("1"); - QVERIFY(found && i1.value() == 1); - - found = i1.findPreviousKey("1"); - QVERIFY(!found); - - i1.toFront(); - found = i1.findNextKey("1"); - QVERIFY(found && i1.value() == 1); - - found = i1.findNextKey("1"); - QVERIFY(found && i1.value() == 2); - - found = i1.findNextKey("1"); - QVERIFY(!found); - - i1.toBack(); - found = i1.findPreviousKey("b"); - QVERIFY(found && i1.value() == 2); - - found = i1.findPreviousKey("b"); - QVERIFY(found && i1.value() == 1); - - found = i1.findPreviousKey("b"); - QVERIFY(!found); - - i1.toFront(); - found = i1.findNextKey("b"); - QVERIFY(found && i1.value() == 1); - - found = i1.findNextKey("b"); - QVERIFY(found && i1.value() == 2); - - found = i1.findNextKey("b"); - QVERIFY(!found); - } -#endif } void tst_Collections::map() @@ -1928,53 +1869,6 @@ void tst_Collections::map() map1.insert("b", 2); map1.insert("b", 1); - // map1: [ "1" -> 1, "1" -> 2, "a" -> 1, "a" -> 2, "a" -> 3, "b" -> 1, "b" -> 2 ] - -#if 0 - QMapIterator<QString, int> i1(map1); - i1.toBack(); - - bool found; - found = i1.findPreviousKey("1"); - QVERIFY(found && i1.value() == 2); - - found = i1.findPreviousKey("1"); - QVERIFY(found && i1.value() == 1); - - found = i1.findPreviousKey("1"); - QVERIFY(!found); - - i1.toFront(); - found = i1.findNextKey("1"); - QVERIFY(found && i1.value() == 1); - - found = i1.findNextKey("1"); - QVERIFY(found && i1.value() == 2); - - found = i1.findNextKey("1"); - QVERIFY(!found); - - i1.toBack(); - found = i1.findPreviousKey("b"); - QVERIFY(found && i1.value() == 2); - - found = i1.findPreviousKey("b"); - QVERIFY(found && i1.value() == 1); - - found = i1.findPreviousKey("b"); - QVERIFY(!found); - - i1.toFront(); - found = i1.findNextKey("b"); - QVERIFY(found && i1.value() == 1); - - found = i1.findNextKey("b"); - QVERIFY(found && i1.value() == 2); - - found = i1.findNextKey("b"); - QVERIFY(!found); -#endif - QMultiMap<QString, int>::iterator j1, k1; j1 = map1.lowerBound("0"); k1 = map1.upperBound("0"); |