Commit graph

28 commits

Author SHA1 Message Date
Alistair Riddoch
68494ba520 Use the ruleset global less often, making code more isolated 2012-01-19 19:34:20 +00:00
Alistair Riddoch
b79da121ab Expect correct errors in script failure tests 2012-01-04 16:52:57 +00:00
Alistair Riddoch
8702f9ba4c Check the right exception is raised
This is a proof of concept to show that checking for these assertions works.
2012-01-04 00:38:39 +00:00
Alistair Riddoch
63aaf7e4db Verify that as_entity returns sane results 2011-12-27 14:58:13 +01:00
Alistair Riddoch
dbdc964b63 Add coverage for Mind Python wrapper 2011-12-27 14:52:56 +01:00
Alistair Riddoch
efa6b00a88 Remove dict for custom attributes 2011-12-27 10:28:14 +01:00
Alistair Riddoch
a8dfc319df Implement better type checks in Python wrappers
These now take into account inheritance, allowing simpler code
and better type safety.
2011-12-13 19:39:09 +00:00
Alistair Riddoch
111581e56a Remove obsolete m_task in Character
This pointer is made obsolete now that TasksProperty holds it
2011-12-02 02:37:42 +00:00
Alistair Riddoch
da5cdefef7 Remove Character.clearTask wrapper
Nothing was using it, and functionality shouldn't be hard coded into
the Character class like this.
2011-11-17 16:46:17 +00:00
Alistair Riddoch
275506b668 Make clearTask wrapper safe
There is an assert in Character::clearTask to ensure that it is only
ever called when there is no task at shutdown. In order to ensure this is
safe in the Python API it is necessary to ensure it is never called
when there is no task, so this change adds a check to the wrapper.
2011-10-04 11:41:04 +01:00
Alistair Riddoch
9e4b97c481 Disable clear_task test for now 2011-10-03 19:23:34 +01:00
Alistair Riddoch
3c86882f42 Add a define to indicate to test code that the main tree was build in debug
This allows testing of assert protection in the main code which is only
included in a debug build, but will crash in an non-debug build
2011-02-16 09:00:40 +00:00
Alistair Riddoch
5cb0ac6ae5 Force asserts on in all tests. 2011-02-15 09:30:46 +00:00
Alistair Riddoch
0658f14751 Convert all Python tests to use macros, so they work with NDEBUG 2009-11-20 20:18:53 +00:00
Alistair Riddoch
63a3745345 Add coverage for wrapEntity() function. 2009-11-12 23:49:17 +00:00
Alistair Riddoch
184b82ca2c Cover all the assert checks. 2009-11-12 23:35:39 +00:00
Alistair Riddoch
5e4a1fe5ff Cover creating new objects from C++. 2009-11-12 23:00:31 +00:00
Alistair Riddoch
f2e550ff7a Fully cover constructors, and attribute special cases. 2009-11-12 22:53:52 +00:00
Alistair Riddoch
7aed5746a2 Fill out the coverage for properties. 2009-11-12 22:45:21 +00:00
Alistair Riddoch
362b08be5f Add coverage for setting and reading type on entities wrapper. 2009-11-12 22:15:41 +00:00
Alistair Riddoch
47cb487393 Add coverage for mind2body 2009-11-12 21:21:00 +00:00
Alistair Riddoch
bef3aa4070 Remove a bunch of waste print statements. 2009-11-12 21:14:38 +00:00
Alistair Riddoch
e87700bfb8 Cover a little more of the task interface. 2009-11-09 18:01:41 +00:00
Alistair Riddoch
5ba918ffcc Add some checks to ensure the union works as expected. 2009-06-12 15:17:52 +01:00
Alistair Riddoch
c71b30a1fa Improve Entity binding test coverage 2009-05-25 04:29:32 +01:00
Alistair Riddoch
ef3e6a3ada Expand the Entity wrapper test to cover inherited wrappers 2009-05-25 04:10:34 +01:00
Alistair Riddoch
ce4ee919fe Add Entity.type and Entity.contains to tested attributes 2009-05-25 03:35:22 +01:00
Alistair Riddoch
b2a2cc61a2 Add very basic coverage for Entity bindings 2009-05-25 03:15:53 +01:00