[Scummvm-cvs-logs] SF.net SVN: scummvm:[35829] scummvm/trunk/test/common/hashmap.h

wjpalenstijn at users.sourceforge.net wjpalenstijn at users.sourceforge.net
Sun Jan 11 16:24:11 CET 2009


Revision: 35829
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35829&view=rev
Author:   wjpalenstijn
Date:     2009-01-11 15:24:11 +0000 (Sun, 11 Jan 2009)

Log Message:
-----------
test re-adding elements to emptied hashmap

Modified Paths:
--------------
    scummvm/trunk/test/common/hashmap.h

Modified: scummvm/trunk/test/common/hashmap.h
===================================================================
--- scummvm/trunk/test/common/hashmap.h	2009-01-11 14:44:29 UTC (rev 35828)
+++ scummvm/trunk/test/common/hashmap.h	2009-01-11 15:24:11 UTC (rev 35829)
@@ -64,6 +64,11 @@
 		TS_ASSERT( !container.empty() );
 		container.erase(4);
 		TS_ASSERT( container.empty() );
+		container[1] = 33;
+		TS_ASSERT( container.contains(1) );
+		TS_ASSERT( !container.empty() );
+		container.erase(1);
+		TS_ASSERT( container.empty() );
 	}
 
 	void test_lookup(void) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list