Changeset 6930


Ignore:
Timestamp:
10/14/11 15:00:55 (9 years ago)
Author:
mkommend
Message:

#1653: Corrected !GP unit tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/SamplesTest.cs

    r6928 r6930  
    191191      RunAlgorithm(ga);
    192192      Assert.AreEqual(63, GetDoubleResult(ga, "BestQuality"));
    193       Assert.AreEqual(49.59, GetDoubleResult(ga, "CurrentAverageQuality"));
     193      Assert.AreEqual(47.26, GetDoubleResult(ga, "CurrentAverageQuality"));
    194194      Assert.AreEqual(0, GetDoubleResult(ga, "CurrentWorstQuality"));
    195195      Assert.AreEqual(50950, GetIntResult(ga, "EvaluatedSolutions"));
     
    241241      ga.SetSeedRandomly.Value = false;
    242242      RunAlgorithm(ga);
    243       Assert.AreEqual(0.82345620379844975, GetDoubleResult(ga, "BestQuality"));
    244       Assert.AreEqual(0.57227221137175377, GetDoubleResult(ga, "CurrentAverageQuality"));
     243      Assert.AreEqual(0.82932035115203739, GetDoubleResult(ga, "BestQuality"));
     244      Assert.AreEqual(0.53850226351927422, GetDoubleResult(ga, "CurrentAverageQuality"));
    245245      Assert.AreEqual(0, GetDoubleResult(ga, "CurrentWorstQuality"));
    246246      Assert.AreEqual(50950, GetIntResult(ga, "EvaluatedSolutions"));
     
    356356      ga.SetSeedRandomly.Value = false;
    357357      RunAlgorithm(ga);
    358       Assert.AreEqual(0.14846929004393383, GetDoubleResult(ga, "BestQuality"));
    359       Assert.AreEqual(2.4746939351100066, GetDoubleResult(ga, "CurrentAverageQuality"));
    360       Assert.AreEqual(100.43641619798549, GetDoubleResult(ga, "CurrentWorstQuality"));
     358      Assert.AreEqual(0.13941049901558636, GetDoubleResult(ga, "BestQuality"));
     359      Assert.AreEqual(5.7121443289014842, GetDoubleResult(ga, "CurrentAverageQuality"));
     360      Assert.AreEqual(102.59400156249991, GetDoubleResult(ga, "CurrentWorstQuality"));
    361361      Assert.AreEqual(100900, GetIntResult(ga, "EvaluatedSolutions"));
    362362    }
Note: See TracChangeset for help on using the changeset viewer.