(svn r9749) [NoAI] -Add: added regression-test for new AITileList valuators noai
authortruelight
Sun, 29 Apr 2007 13:02:12 +0000
branchnoai
changeset 9605 2c2348827b52
parent 9604 89b96457aae4
child 9606 91086d7330a5
(svn r9749) [NoAI] -Add: added regression-test for new AITileList valuators
bin/ai/regression/regression.nut
bin/ai/regression/regression.txt
--- a/bin/ai/regression/regression.nut	Sun Apr 29 12:47:22 2007 +0000
+++ b/bin/ai/regression/regression.nut	Sun Apr 29 13:02:12 2007 +0000
@@ -310,10 +310,21 @@
 	print("");
 	print("--TileList--");
 	print("  Count():             " + list.Count());
-	list.AddRectangle(33410 - 256 * 2, 256 * 2 + 33410 + 8);
+	list.AddRectangle(41895 - 256 * 2, 256 * 2 + 41895 + 8);
 	print("  Count():             " + list.Count());
 	list.Valuate(AITileListBuildable());
 	list.KeepValue(1);
+	print("  Buildable():         done");
+	print("  KeepAboveValue(1):   done");
+	print("  Count():             " + list.Count());
+	list.Valuate(AITileListRoadTile());
+	list.KeepValue(1);
+	print("  RoadTile():          done");
+	print("  KeepAboveValue(1):   done");
+	print("  Count():             " + list.Count());
+	list.Valuate(AITileListNeighbourRoad());
+	list.KeepValue(1);
+	print("  NeighbourRoad():     done");
 	print("  KeepAboveValue(1):   done");
 	print("  Count():             " + list.Count());
 	print("  ListDump:");
--- a/bin/ai/regression/regression.txt	Sun Apr 29 12:47:22 2007 +0000
+++ b/bin/ai/regression/regression.txt	Sun Apr 29 13:02:12 2007 +0000
@@ -701,46 +701,17 @@
 --TileList--
   Count():             0
   Count():             45
+  Buildable():         done
   KeepAboveValue(1):   done
-  Count():             37
+  Count():             40
+  RoadTile():          done
+  KeepAboveValue(1):   done
+  Count():             7
+  NeighbourRoad():     done
+  KeepAboveValue(1):   done
+  Count():             1
   ListDump:
-    33930 => 1
-    33929 => 1
-    33928 => 1
-    33927 => 1
-    33926 => 1
-    33925 => 1
-    33924 => 1
-    33923 => 1
-    33922 => 1
-    33674 => 1
-    33673 => 1
-    33672 => 1
-    33671 => 1
-    33670 => 1
-    33669 => 1
-    33666 => 1
-    33418 => 1
-    33417 => 1
-    33410 => 1
-    33162 => 1
-    33161 => 1
-    33160 => 1
-    33159 => 1
-    33158 => 1
-    33157 => 1
-    33156 => 1
-    33155 => 1
-    33154 => 1
-    32906 => 1
-    32905 => 1
-    32904 => 1
-    32903 => 1
-    32902 => 1
-    32901 => 1
-    32900 => 1
-    32899 => 1
-    32898 => 1
+    42409 => 1
 
 --Town--
   GetMaxTownID():    31