Commit graph

6 commits

Author SHA1 Message Date
Al Riddoch
325780d652 2007-01-14 Al Riddoch <alriddoch@zepler.org>
* common/Property.cpp: Add some specialisations that are useful
	  to cover in the tests, even though we are not using them in
	  the server yet.

	* common/inheritance.h: Provide an accessor for the dictionary of
	  class objects for testing purposes.

	* rulesets/AreaProperty.cpp: Use Map() rather than isMap() once we
	  have already tested it.

	* rulesets/Entity.cpp: Remove some debug output.

	* server/CorePropertyManager.cpp: Remove some debug output.

	* tests/PropertyExerciser.h, tests/PropertyExerciser.cpp: Fill out
	  the functionality of the property tester. Add functions to get
	  random values. Use vector for value storage to make it easier
	  to generate the random values.

	* tests/AllPropertytest.cpp: Cover all the property classes we can
	  test.

	* tests/Makefile.am: Add mercator libraries to the property test,
	  as we are now testing the terrain property.
2007-01-14 21:55:21 +00:00
Al Riddoch
13f7e510e7 2007-01-13 Al Riddoch <alriddoch@zepler.org>
* tests/PropertyExerciser.cpp: Expand the coverage of the tests.
2007-01-13 20:47:32 +00:00
Al Riddoch
2dffdf5cc8 Oops, missed 2007-01-13 20:31:42 +00:00
Al Riddoch
6e519d46cb 2007-01-13 Al Riddoch <alriddoch@zepler.org>
* tests/PropertyExerciser.cpp, tests/PropertyExerciser.h: Expand the
	  coverage of the tests.
2007-01-13 20:29:14 +00:00
Al Riddoch
2b21050126 2007-01-13 Al Riddoch <alriddoch@zepler.org>
* tests/PropertyExerciser.cpp: Add the required asser header.
2007-01-13 13:52:08 +00:00
Al Riddoch
92097063bc 2007-01-11 Al Riddoch <alriddoch@zepler.org>
* tests/PropertyExerciser.h, tests/PropertyExerciser.cpp:
	  New class which thoroughly exercises any property class via its
	  base interface.

	* tests/AllPropertytest.cpp: Start passing all property classes
	  through the as yet incomplete exerciser.
2007-01-11 22:35:05 +00:00