- Timestamp:
- 09/17/17 23:27:05 (7 years ago)
- Location:
- branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Tests/Problem
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Tests/Problem/DeterministicTests.cs
r15334 r15366 40 40 var bestQuality1 = GetDoubleResult(ga1, "BestQuality"); 41 41 var bestQuality2 = GetDoubleResult(ga2, "BestQuality"); 42 Assert.AreEqual(bestQuality1, bestQuality2, 0.000 1);42 Assert.AreEqual(bestQuality1, bestQuality2, 0.000001); 43 43 44 var currentAverageQuality1 = GetDoubleResult(ga1, "CurrentAverageQuality");45 var currentAverageQuality2 = GetDoubleResult(ga2, "CurrentAverageQuality");46 Assert.AreEqual(currentAverageQuality1, currentAverageQuality2, 0.01);44 //var currentAverageQuality1 = GetDoubleResult(ga1, "CurrentAverageQuality"); 45 //var currentAverageQuality2 = GetDoubleResult(ga2, "CurrentAverageQuality"); 46 //Assert.AreEqual(currentAverageQuality1, currentAverageQuality2, 0.01); 47 47 48 48 var currentWorstQuality1 = GetDoubleResult(ga1, "CurrentWorstQuality"); 49 49 var currentWorstQuality2 = GetDoubleResult(ga2, "CurrentWorstQuality"); 50 Assert.AreEqual(currentWorstQuality1, currentWorstQuality2, 0.000 1);50 Assert.AreEqual(currentWorstQuality1, currentWorstQuality2, 0.000001); 51 51 } 52 52 -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Tests/Problem/IndividualMapperTests.cs
r15334 r15366 76 76 77 77 Console.WriteLine(@"Duration: {0}ms", sw.ElapsedMilliseconds); 78 Assert.AreEqual(vector.Length, program.Total ExpressionCount);78 Assert.AreEqual(vector.Length, program.TotalInstructionCount); 79 79 } 80 80
Note: See TracChangeset
for help on using the changeset viewer.