(svn r12724) [NoAI] -Fix r12720: also add regression test for new functions noai
authortruebrain
Tue, 15 Apr 2008 22:18:11 +0000
branchnoai
changeset 10193 9f73edc0c57a
parent 10191 da75d1460a4b
child 10194 c9fdeb7450da
(svn r12724) [NoAI] -Fix r12720: also add regression test for new functions
bin/ai/regression/regression.nut
bin/ai/regression/regression.txt
--- a/bin/ai/regression/regression.nut	Tue Apr 15 16:11:29 2008 +0000
+++ b/bin/ai/regression/regression.nut	Tue Apr 15 22:18:11 2008 +0000
@@ -1063,6 +1063,8 @@
 	print("    GetProfitThisYear(): " + AIVehicle.GetProfitThisYear(11));
 	print("    GetProfitLastYear(): " + AIVehicle.GetProfitLastYear(11));
 	print("    GetVehicleType():    " + AIVehicle.GetVehicleType(11));
+	print("    GetCapacity():       " + AIVehicle.GetCapacity(11, 10));
+	print("    GetCargoLoad():      " + AIVehicle.GetCargoLoad(11, 10));
 	print("    IsInDepot():         " + AIVehicle.IsInDepot(11));
 	print("    IsStoppedInDepot():  " + AIVehicle.IsStoppedInDepot(11));
 
@@ -1147,6 +1149,16 @@
 	for (local i = list.Begin(); list.HasNext(); i = list.Next()) {
 		print("    " + i + " => " + list.GetValue(i));
 	}
+	list.Valuate(AIVehicle.GetCapacity, 10);
+	print("  VehicleType ListDump:");
+	for (local i = list.Begin(); list.HasNext(); i = list.Next()) {
+		print("    " + i + " => " + list.GetValue(i));
+	}
+	list.Valuate(AIVehicle.GetCargoLoad, 10);
+	print("  VehicleType ListDump:");
+	for (local i = list.Begin(); list.HasNext(); i = list.Next()) {
+		print("    " + i + " => " + list.GetValue(i));
+	}
 }
 
 
--- a/bin/ai/regression/regression.txt	Tue Apr 15 16:11:29 2008 +0000
+++ b/bin/ai/regression/regression.txt	Tue Apr 15 22:18:11 2008 +0000
@@ -6244,6 +6244,8 @@
     GetProfitThisYear(): 0
     GetProfitLastYear(): 0
     GetVehicleType():    1
+    GetCapacity():       12
+    GetCargoLoad():      0
     IsInDepot():         false
     IsStoppedInDepot():  false
   BuildVehicle():       13
@@ -6322,6 +6324,16 @@
     15 => 2
     12 => 1
     11 => 1
+  VehicleType ListDump:
+    12 => 12
+    11 => 12
+    15 => 0
+    13 => 0
+  VehicleType ListDump:
+    15 => 0
+    13 => 0
+    12 => 0
+    11 => 0
 
 --Order--
   GetNumberOfOrders():   0