aboutsummaryrefslogtreecommitdiff
path: root/test/common/hashmap.h
AgeCommit message (Collapse)Author
2011-01-30COMMON: Add an erase method which takes an iterator to HashMap.Johannes Schickel
Currently there is no iterator returned from this method, to have some similarity to associative containers of the STL. I also "added" one unit test for this method, which is basically just a copy of the HashMap::erase(const Key &) test with the required adaptions. svn-id: r55661
2009-09-22Add basic test for HashMap::iteratorWillem Jan Palenstijn
svn-id: r44259
2009-09-06COMMON: HashMap::getVal now allows specifying a default value.Max Horn
A new variant of HashMap::getVal with a second 'default value' parameter has been added. This helps avoid many contains() + getVal() combos (which incur double lookup penalty), and is much lighter than using find() (which has to create an iterator). svn-id: r43983
2009-06-09Changed some lines to tabs instead of whitespaces for identation.Johannes Schickel
svn-id: r41401
2009-06-09Add (failing) hashmap test case for collision handlingWillem Jan Palenstijn
svn-id: r41400
2009-05-19Converted unit tests to use TS_ASSERT_EQUALS / TS_ASSERT_DIFFERS where ↵Max Horn
possible; also made them comply a bit more to our code formatting guideline svn-id: r40722
2009-04-20TESTS: Code formatting; also changed some TS_ASSERT to TS_ASSERT_EQUALSMax Horn
svn-id: r40026
2009-01-11test re-adding elements to emptied hashmapWillem Jan Palenstijn
svn-id: r35829
2009-01-01Whoa! Removing trailing spaces.Eugene Sandulenko
svn-id: r35648
2008-08-28Some extra HashMap testsMax Horn
svn-id: r34200
2008-05-28Decrement _nele when erasing an element from hashmap, and add a test-case ↵Willem Jan Palenstijn
for this bug. svn-id: r32343
2008-03-30Add test for copying hashmaps.Johannes Schickel
svn-id: r31315
2008-01-27Removed trailing spaces.Jordi Vilalta Prat
svn-id: r30664
2007-09-19Merged common/stdafx.h into common/scummsys.h. All referencing files have ↵Nicola Mettifogo
been updated. svn-id: r28966
2006-03-31Some new & extended test casesMax Horn
svn-id: r21509
2006-03-28Adapted unit tests to current situationMax Horn
svn-id: r21481