Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8335


Ignore:
Timestamp:
07/26/12 17:48:18 (11 years ago)
Author:
mkommend
Message:

#1070: Adapted unit test to take new GP manipulator into account.

File:
1 edited

Legend:

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

    r8195 r8335  
    190190      ga.SetSeedRandomly.Value = false;
    191191      RunAlgorithm(ga);
    192       Assert.AreEqual(67, GetDoubleResult(ga, "BestQuality"));
    193       Assert.AreEqual(45.813, GetDoubleResult(ga, "CurrentAverageQuality"));
     192      Assert.AreEqual(81, GetDoubleResult(ga, "BestQuality"));
     193      Assert.AreEqual(48.19, 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.78855594192122458, GetDoubleResult(ga, "BestQuality"), 1E-8);
    244       Assert.AreEqual(0.61395271071681523, GetDoubleResult(ga, "CurrentAverageQuality"), 1E-8);
     243      Assert.AreEqual(0.84966698918060757, GetDoubleResult(ga, "BestQuality"), 1E-8);
     244      Assert.AreEqual(0.59815405391256571, GetDoubleResult(ga, "CurrentAverageQuality"), 1E-8);
    245245      Assert.AreEqual(0, GetDoubleResult(ga, "CurrentWorstQuality"), 1E-8);
    246246      Assert.AreEqual(50950, GetIntResult(ga, "EvaluatedSolutions"));
     
    346346      ga.SetSeedRandomly.Value = false;
    347347      RunAlgorithm(ga);
    348       Assert.AreEqual(0.13775264138895371, GetDoubleResult(ga, "BestQuality"), 1E-8);
    349       Assert.AreEqual(14.232802217120254, GetDoubleResult(ga, "CurrentAverageQuality"), 1E-8);
    350       Assert.AreEqual(104.24339008411457, GetDoubleResult(ga, "CurrentWorstQuality"), 1E-8);
     348      Assert.AreEqual(0.14458636369766503, GetDoubleResult(ga, "BestQuality"), 1E-8);
     349      Assert.AreEqual(2.5613992769560352, GetDoubleResult(ga, "CurrentAverageQuality"), 1E-8);
     350      Assert.AreEqual(100.62175156249987, GetDoubleResult(ga, "CurrentWorstQuality"), 1E-8);
    351351      Assert.AreEqual(100900, GetIntResult(ga, "EvaluatedSolutions"));
    352352    }
Note: See TracChangeset for help on using the changeset viewer.