Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-05-26 | Fixed a bug in Common::Array (including a unit test for it), and changed the ↵ | Max Horn | |
way the internal storage growth over time. The bug could result in incorrect results when using push_back (or insert_at) to insert data from an array into itself if this insertions would cause the internal array storage to grow. Also added a unit test for this bug. Furthermore, if the internal storage needs to grow, it will now be resized to the next power of two, instead of being increased by 32. svn-id: r40907 | |||
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-05-03 | Added unit test for Common::Array::resize() | Max Horn | |
svn-id: r40261 | |||
2009-04-27 | COMMON: Made sure Common::List and Common::array each have all ↵ | Max Horn | |
front/back/push_back/push_front, as have their STL counterparts svn-id: r40163 | |||
2009-04-22 | COMMON: changed class StringList to a simple typedef; enhanced the ↵ | Max Horn | |
Common::Array constructor which converts regular arrays to Array objects to be more flexible in its type (allows e.g. to assign an array of char* to a StringList svn-id: r40077 | |||
2009-04-21 | Fix warnings (patch for array.h was supplied via salty-horse on IRC). | Johannes Schickel | |
svn-id: r40054 | |||
2009-04-20 | COMMON & TESTS: Added new constructor to Array<T>, namely Array(const T* ↵ | Max Horn | |
data, int n), which makes it possible to clone a regular array into a Common::Array; added a unit test for that and slightly extended existing Common::Array unit tests svn-id: r40027 | |||
2009-04-20 | TESTS: Code formatting; also changed some TS_ASSERT to TS_ASSERT_EQUALS | Max Horn | |
svn-id: r40026 | |||
2007-09-19 | Merged common/stdafx.h into common/scummsys.h. All referencing files have ↵ | Nicola Mettifogo | |
been updated. svn-id: r28966 | |||
2007-05-23 | Commit of patch #1715313 ("CORE: STL like algorithm implementation"). | Johannes Schickel | |
svn-id: r26929 | |||
2006-03-28 | Renamed various container isEmpty() methods to empty() to match STL conventions | Max Horn | |
svn-id: r21472 | |||
2005-07-30 | Remove trailing whitespaces. | Eugene Sandulenko | |
svn-id: r18604 | |||
2005-06-24 | When including files from common/, explicitly use the common/ prefix | Max Horn | |
svn-id: r18444 | |||
2004-05-21 | Updated unit tests | Max Horn | |
svn-id: r13847 | |||
2004-04-12 | Skeleton unit test for array class | Max Horn | |
svn-id: r13556 |