changes for 1.2.5

This commit is contained in:
Guenter Obiltschnig
2006-10-23 15:33:11 +00:00
parent 5638037326
commit 072ba74f28
35 changed files with 276 additions and 184 deletions

View File

@@ -1,7 +1,7 @@
//
// LRUCacheTest.cpp
//
// $Id: //poco/1.2/Foundation/testsuite/src/LRUCacheTest.cpp#2 $
// $Id: //poco/1.2/Foundation/testsuite/src/LRUCacheTest.cpp#3 $
//
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
@@ -54,9 +54,11 @@ LRUCacheTest::~LRUCacheTest()
void LRUCacheTest::testClear()
{
LRUCache<int, int> aCache(3);
assert (aCache.size() == 0);
aCache.add(1, 2);
aCache.add(3, 4);
aCache.add(5, 6);
assert (aCache.size() == 3);
assert (aCache.has(1));
assert (aCache.has(3));
assert (aCache.has(5));