Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/17/12 15:05:11 (12 years ago)
Author:
abeham
Message:

#1775: reintegrated branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Tests/HeuristicLab.Encodings.IntegerVectorEncoding-3.3/DiscreteCrossoverTest.cs

    r7259 r8019  
    119119      parent2 = new IntegerVector(new int[] { 4, 1, 3, 2, 8 });
    120120      expected = new IntegerVector(new int[] { 2, 2, 3, 5, 8 });
    121       actual = DiscreteCrossover.Apply(random, parent1, parent2);
     121      actual = DiscreteCrossover.Apply(random, new ItemArray<IntegerVector>(new IntegerVector[] { parent1, parent2 }));
    122122      Assert.IsTrue(Auxiliary.IntegerVectorIsEqualByPosition(actual, expected));
    123123
     
    129129      exceptionFired = false;
    130130      try {
    131         actual = DiscreteCrossover.Apply(random, parent1, parent2);
     131        actual = DiscreteCrossover.Apply(random, new ItemArray<IntegerVector>(new IntegerVector[] { parent1, parent2 }));
    132132      }
    133133      catch (System.ArgumentException) {
Note: See TracChangeset for help on using the changeset viewer.