Free cookie consent management tool by TermsFeed Policy Generator

Changeset 13057 for trunk/sources


Ignore:
Timestamp:
10/22/15 20:57:27 (8 years ago)
Author:
gkronber
Message:

#2472 changed lawn mower sample to use the new implementation and added assertions for the results of the unit test

File:
1 edited

Legend:

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

    r12012 r13057  
    3636      ga.SetSeedRandomly.Value = false;
    3737      SamplesUtils.RunAlgorithm(ga);
     38      Assert.AreEqual(55, SamplesUtils.GetDoubleResult(ga, "BestQuality"));
     39      Assert.AreEqual(49, 266, SamplesUtils.GetDoubleResult(ga, "CurrentAverageQuality"));
     40      Assert.AreEqual(1, SamplesUtils.GetDoubleResult(ga, "CurrentWorstQuality"));
     41      Assert.AreEqual(50950, SamplesUtils.GetIntResult(ga, "EvaluatedSolutions"));
    3842    }
    3943
     
    4347      #region Problem Configuration
    4448
    45       var problem = new HeuristicLab.Problems.LawnMower.Problem();
     49      var problem = new Problems.GeneticProgramming.LawnMower.Problem();
    4650
    4751      #endregion
Note: See TracChangeset for help on using the changeset viewer.