[GRASS-SVN] r54791 - grass-addons/grass7/raster/r.agent/tests

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 27 12:54:25 PST 2013


Author: mic
Date: 2013-01-27 12:54:25 -0800 (Sun, 27 Jan 2013)
New Revision: 54791

Added:
   grass-addons/grass7/raster/r.agent/tests/test_aco.py
   grass-addons/grass7/raster/r.agent/tests/test_agent.py
   grass-addons/grass7/raster/r.agent/tests/test_ant.py
Modified:
   grass-addons/grass7/raster/r.agent/tests/test_world.py
Log:
implementing initial test stubs

Added: grass-addons/grass7/raster/r.agent/tests/test_aco.py
===================================================================
--- grass-addons/grass7/raster/r.agent/tests/test_aco.py	                        (rev 0)
+++ grass-addons/grass7/raster/r.agent/tests/test_aco.py	2013-01-27 20:54:25 UTC (rev 54791)
@@ -0,0 +1,39 @@
+
+import unittest2 as unittest
+#import unittest
+
+from libagent import aco
+
+class TestACO(unittest.TestCase):
+    def setUp(self):
+        self.world = aco.ACO()
+
+    def test_addlayertopg(self):
+        pass
+
+    def test_removelayerfrompg(self):
+        pass
+
+    def test_getlayer(self):
+        pass
+
+    def test_bear(self):
+        pass
+
+    def test_getnextagent(self):
+        pass
+
+    def test_move(self):
+        pass
+
+    def test_getposition(self):
+        pass
+
+    def test_getneighbourpositions(self):
+        pass
+
+    def test_kill(self):
+        pass
+
+#    def tearDown(self):
+

Added: grass-addons/grass7/raster/r.agent/tests/test_agent.py
===================================================================
--- grass-addons/grass7/raster/r.agent/tests/test_agent.py	                        (rev 0)
+++ grass-addons/grass7/raster/r.agent/tests/test_agent.py	2013-01-27 20:54:25 UTC (rev 54791)
@@ -0,0 +1,27 @@
+
+import unittest2 as unittest
+#import unittest
+
+from libagent import agent
+
+class TestAgent(unittest.TestCase):
+    def setUp(self):
+        self.agent = agent.Agent()
+
+    def test_setposition(self):
+    pass
+
+    def test_getposition(self):
+    pass
+
+    def test_move(self):
+    pass
+
+    def test_age(self):
+    pass
+
+    def test_snuffit(self):
+    pass
+
+#    def tearDown(self):
+

Added: grass-addons/grass7/raster/r.agent/tests/test_ant.py
===================================================================
--- grass-addons/grass7/raster/r.agent/tests/test_ant.py	                        (rev 0)
+++ grass-addons/grass7/raster/r.agent/tests/test_ant.py	2013-01-27 20:54:25 UTC (rev 54791)
@@ -0,0 +1,27 @@
+
+import unittest2 as unittest
+#import unittest
+
+from libagent import ant
+
+class TestAnt(unittest.TestCase):
+    def setUp(self):
+        self.agent = ant.Ant()
+
+    def test_setposition(self):
+    pass
+
+    def test_getposition(self):
+    pass
+
+    def test_move(self):
+    pass    
+    
+    def test_age(self):
+    pass    
+    
+    def test_snuffit(self):
+    pass
+
+#    def tearDown(self):
+

Modified: grass-addons/grass7/raster/r.agent/tests/test_world.py
===================================================================
--- grass-addons/grass7/raster/r.agent/tests/test_world.py	2013-01-27 20:53:50 UTC (rev 54790)
+++ grass-addons/grass7/raster/r.agent/tests/test_world.py	2013-01-27 20:54:25 UTC (rev 54791)
@@ -11,5 +11,29 @@
     def test_addlayertopg(self):
         pass
 
+    def test_removelayerfrompg(self):
+        pass
+
+    def test_getlayer(self):
+        pass
+
+    def test_bear(self):
+        pass
+
+    def test_getnextagent(self):
+        pass
+
+    def test_move(self):
+        pass
+
+    def test_getposition(self):
+        pass
+
+    def test_getneighbourpositions(self):
+        pass
+
+    def test_kill(self):
+        pass
+
 #    def tearDown(self):
 



More information about the grass-commit mailing list