[GRASS-SVN] r56291 - in grass-addons/grass7/raster/r.agent: libagent tests
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat May 18 03:52:12 PDT 2013
Author: mic
Date: 2013-05-18 03:52:12 -0700 (Sat, 18 May 2013)
New Revision: 56291
Modified:
grass-addons/grass7/raster/r.agent/libagent/ant.py
grass-addons/grass7/raster/r.agent/tests/test_ant.py
Log:
start testing ants
Modified: grass-addons/grass7/raster/r.agent/libagent/ant.py
===================================================================
--- grass-addons/grass7/raster/r.agent/libagent/ant.py 2013-05-18 08:55:22 UTC (rev 56290)
+++ grass-addons/grass7/raster/r.agent/libagent/ant.py 2013-05-18 10:52:12 UTC (rev 56291)
@@ -42,4 +42,4 @@
# we are all only getting older..
if self.age() == False:
return False
- pass
+
Modified: grass-addons/grass7/raster/r.agent/tests/test_ant.py
===================================================================
--- grass-addons/grass7/raster/r.agent/tests/test_ant.py 2013-05-18 08:55:22 UTC (rev 56290)
+++ grass-addons/grass7/raster/r.agent/tests/test_ant.py 2013-05-18 10:52:12 UTC (rev 56291)
@@ -2,12 +2,15 @@
import unittest2 as unittest
#import unittest
-from libagent import ant
+from libagent import playground, anthill, ant
class TestAnt(unittest.TestCase):
def setUp(self):
- pass
-# self.agent = ant.Ant()
+ self.pg = playground.Playground()
+ self.pg.setregion(3,3)
+ self.world = anthill.Anthill(self.pg)
+ self.world.sites = [[2,2]]
+ self.agent = self.world.bear()
def test_setposition(self):
pass
More information about the grass-commit
mailing list