Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6505 for trunk


Ignore:
Timestamp:
07/04/11 19:11:19 (13 years ago)
Author:
gkronber
Message:

#1567: added assertions for the x64 results for PSO_Schwefel sample unit test.

File:
1 edited

Legend:

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

    r6502 r6505  
    645645      pso.SetSeedRandomly.Value = false;
    646646      RunAlgorithm(pso);
    647       Assert.AreEqual(119.30888659302838, GetDoubleResult(pso, "BestQuality"));
    648       Assert.AreEqual(140.71570105946438, GetDoubleResult(pso, "CurrentAverageQuality"));
    649       Assert.AreEqual(220.956806502853, GetDoubleResult(pso, "CurrentWorstQuality"));
    650       Assert.AreEqual(1000, GetIntResult(pso, "Iterations"));
     647      if (!Environment.Is64BitProcess) {
     648        Assert.AreEqual(119.30888659302838, GetDoubleResult(pso, "BestQuality"));
     649        Assert.AreEqual(140.71570105946438, GetDoubleResult(pso, "CurrentAverageQuality"));
     650        Assert.AreEqual(220.956806502853, GetDoubleResult(pso, "CurrentWorstQuality"));
     651        Assert.AreEqual(1000, GetIntResult(pso, "Iterations"));
     652      } else {
     653        Assert.AreEqual(118.58396881972624, GetDoubleResult(pso, "BestQuality"));
     654        Assert.AreEqual(139.43946864779372, GetDoubleResult(pso, "CurrentAverageQuality"));
     655        Assert.AreEqual(217.14654589055152, GetDoubleResult(pso, "CurrentWorstQuality"));
     656        Assert.AreEqual(1000, GetIntResult(pso, "Iterations"));
     657      }
    651658    }
    652659    private ParticleSwarmOptimization CreatePsoSchwefelSample() {
Note: See TracChangeset for help on using the changeset viewer.