Age | Commit message (Collapse) | Author | |
---|---|---|---|
2011-01-30 | COMMON: 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-22 | Add basic test for HashMap::iterator | Willem Jan Palenstijn | |
svn-id: r44259 | |||
2009-09-06 | COMMON: 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-09 | Changed some lines to tabs instead of whitespaces for identation. | Johannes Schickel | |
svn-id: r41401 | |||
2009-06-09 | Add (failing) hashmap test case for collision handling | Willem Jan Palenstijn | |
svn-id: r41400 | |||
2009-05-19 | Converted 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-20 | TESTS: Code formatting; also changed some TS_ASSERT to TS_ASSERT_EQUALS | Max Horn | |
svn-id: r40026 | |||
2009-01-11 | test re-adding elements to emptied hashmap | Willem Jan Palenstijn | |
svn-id: r35829 | |||
2009-01-01 | Whoa! Removing trailing spaces. | Eugene Sandulenko | |
svn-id: r35648 | |||
2008-08-28 | Some extra HashMap tests | Max Horn | |
svn-id: r34200 | |||
2008-05-28 | Decrement _nele when erasing an element from hashmap, and add a test-case ↵ | Willem Jan Palenstijn | |
for this bug. svn-id: r32343 | |||
2008-03-30 | Add test for copying hashmaps. | Johannes Schickel | |
svn-id: r31315 | |||
2008-01-27 | Removed trailing spaces. | Jordi Vilalta Prat | |
svn-id: r30664 | |||
2007-09-19 | Merged common/stdafx.h into common/scummsys.h. All referencing files have ↵ | Nicola Mettifogo | |
been updated. svn-id: r28966 | |||
2006-03-31 | Some new & extended test cases | Max Horn | |
svn-id: r21509 | |||
2006-03-28 | Adapted unit tests to current situation | Max Horn | |
svn-id: r21481 |