aboutsummaryrefslogtreecommitdiff
path: root/test/common/array.h
AgeCommit message (Collapse)Author
2011-05-16COMMON: Fix inserting an array into itself under certain conditionsMax Horn
2010-10-03SCI: Allow multiple word groups in parserWillem Jan Palenstijn
In SCI01 and up, each typed word may be interpreted as multiple class,group pairs. This patch adds support to the vocabulary and parser. It uses the matcher support added in r52985. This fixes parser issues in German LSL3, but needs testing. svn-id: r52989
2010-03-18COMMON: Move typedef StringList from str.h to new header str-array.hMax Horn
This removes the dependency on array.h from str.h. Also, begun migration from the confusing type name "StringList" to the more appropriate StringArray. svn-id: r48282
2009-10-19Added operator== and != to Common::ArrayMax Horn
svn-id: r45247
2009-05-26Fixed 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-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-05-03Added unit test for Common::Array::resize()Max Horn
svn-id: r40261
2009-04-27COMMON: 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-22COMMON: 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-21Fix warnings (patch for array.h was supplied via salty-horse on IRC).Johannes Schickel
svn-id: r40054
2009-04-20COMMON & 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-20TESTS: Code formatting; also changed some TS_ASSERT to TS_ASSERT_EQUALSMax Horn
svn-id: r40026
2007-09-19Merged common/stdafx.h into common/scummsys.h. All referencing files have ↵Nicola Mettifogo
been updated. svn-id: r28966
2007-05-23Commit of patch #1715313 ("CORE: STL like algorithm implementation").Johannes Schickel
svn-id: r26929
2006-03-28Renamed various container isEmpty() methods to empty() to match STL conventionsMax Horn
svn-id: r21472
2005-07-30Remove trailing whitespaces.Eugene Sandulenko
svn-id: r18604
2005-06-24When including files from common/, explicitly use the common/ prefixMax Horn
svn-id: r18444
2004-05-21Updated unit testsMax Horn
svn-id: r13847
2004-04-12Skeleton unit test for array classMax Horn
svn-id: r13556