Changeset 6928


Ignore:
Timestamp:
10/14/11 12:33:04 (9 years ago)
Author:
mkommend
Message:

#1653: Updated artifical ant unit test.

File:
1 edited

Legend:

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

    r6922 r6928  
    187187    [TestMethod]
    188188    public void RunGpArtificialAntSampleTest() {
    189       var ga = (GeneticAlgorithm)XmlParser.Deserialize("../../SGP_SantaFe.hl");
    190       //var ga = CreateGpArtificialAntSample();
     189      var ga = CreateGpArtificialAntSample();
    191190      ga.SetSeedRandomly.Value = false;
    192191      RunAlgorithm(ga);
    193       Assert.AreEqual(68, GetDoubleResult(ga, "BestQuality"));
    194       Assert.AreEqual(52.534, GetDoubleResult(ga, "CurrentAverageQuality"));
     192      Assert.AreEqual(63, GetDoubleResult(ga, "BestQuality"));
     193      Assert.AreEqual(49.59, GetDoubleResult(ga, "CurrentAverageQuality"));
    195194      Assert.AreEqual(0, GetDoubleResult(ga, "CurrentWorstQuality"));
    196195      Assert.AreEqual(50950, GetIntResult(ga, "EvaluatedSolutions"));
Note: See TracChangeset for help on using the changeset viewer.