From b1fac093681a93fde2c6e507082968f64dde64c9 Mon Sep 17 00:00:00 2001 From: ryo_saeba Date: Tue, 14 Feb 2006 22:35:24 +0000 Subject: [PATCH] A few more tests. git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@4453 282e977c-c81d-0410-88c4-b93c2d0d6712 --- test/python.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/python.py b/test/python.py index 0c70d13e4..0d70d8e31 100644 --- a/test/python.py +++ b/test/python.py @@ -98,6 +98,18 @@ def do_memory(): dict['s'] = x + +def do_resist(): + whoami.Say('Resistance test') + who = Crossfire.WhoIsActivator() + for r in range(25): + whoami.Say(' %d -> %d'%(r,who.GetResist(r))) + +def do_basics(): + whoami.Say('Basic test') + who = Crossfire.WhoIsActivator() + whoami.Say('type = %d'%who.Type) + whoami.Say( 'plugin test' ) topic = Crossfire.WhatIsMessage().split() @@ -117,5 +129,9 @@ elif topic[0] == 'ref': do_activator() elif topic[0] == 'memory': do_memory() +elif topic[0] == 'resist': + do_resist() +elif topic[0] == 'basics': + do_basics() else: do_help()