Commit graph

9 commits

Author SHA1 Message Date
Alistair Riddoch
5209e1f434 Update tests now that AreaProperty doesn't take constructor flags arg 2009-05-14 00:24:00 +01:00
Alistair Riddoch
1a7ab4dde3 Update tests to pass in the right new arguments to property constructors 2009-05-13 23:47:39 +01:00
Alistair Riddoch
923eab01fd Update tests to work with updated terrain property interface 2009-05-13 17:19:39 +01:00
Al Riddoch
3bb7c59d70 2008-11-30 Al Riddoch <alriddoch@googlemail.com>
* tests/AllPropertytest.cpp: Statistics property no longer needs
	  to be connected to a character.

	* tests/Makefile.am: Remove deleted object files from server.
2008-11-30 04:14:55 +00:00
Al Riddoch
f0858fe4e8 2008-09-27 Al Riddoch <alriddoch@googlemail.com>
* tests/TestPropertyManager.h, tests/TestPropertyManager.cpp:
	  Implement the updated interface.

	* tests/Makefile.am: Add the necessary properties as used by
	  Plant.

	* tests/Stackabletest.cpp: Update which properties are expected
	  by default.

	* tests/AllPropertytest.cpp, tests/Propertytest.cpp: Update tests
	  now the core property classes have all changed.
2008-09-27 16:38:26 +00:00
Al Riddoch
5cc69d4eda 2007-12-02 Al Riddoch <alriddoch@zepler.org>
* tests/AllPropertytest.cpp, tests/IGEntityExerciser.h,
	  tests/Makefile.am: Fix the tests up so the build and run again.
2007-12-03 00:00:50 +00:00
Al Riddoch
d0e5fd8680 2007-01-16 Al Riddoch <alriddoch@zepler.org>
* common/type_utils.h: Properlly check for Atlas data type when
	  converting data to objects.

	* tests/AllPropertytest.cpp: Enable LineProperty test now that the
	  type checking is good enough.
2007-01-16 01:07:46 +00:00
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
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