Commit graph

16 commits

Author SHA1 Message Date
Alistair Riddoch
d3752a4774 Fix inheritance checks so they don't miss exact match 2011-12-09 09:38:36 +00:00
Alistair Riddoch
ed7ea294bf Implement inheritance checks in terms of TypeNode 2011-12-09 00:19:53 +00:00
Alistair Riddoch
12ae1bfb28 Use the more efficient TypeNode constructor 2011-09-17 18:52:29 +01:00
Alistair Riddoch
fa4ae198b1 TypeNode takes a name on construction
One is always required, and it's just bloaty to set separately
2011-09-16 18:30:22 +01:00
Alistair Riddoch
5cb0ac6ae5 Force asserts on in all tests. 2011-02-15 09:30:46 +00:00
Alistair Riddoch
d65def0699 Remove stubs for classes no longer required. 2010-07-13 18:02:02 +01:00
Alistair Riddoch
d0d689d3c8 Isolate the property fuzzer test. 2010-04-07 01:00:17 +01:00
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