Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/16/10 11:37:25 (14 years ago)
Author:
swagner
Message:

Renamed some test methods and fixed typos (#909)

Location:
trunk/sources/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Tests
Files:
4 edited

Legend:

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

    r3053 r3061  
    2020#endregion
    2121
    22 using HeuristicLab.Data;
    2322using HeuristicLab.Common;
     23using HeuristicLab.Encodings.IntegerVectorEncoding;
    2424
    2525namespace HeuristicLab.Encodings.IntegerVectorEncoding_33.Tests {
    2626  public static class Auxiliary {
    27     public static bool IntVectorIsEqualByPosition(IntArray p1, IntArray p2) {
     27    public static bool IntegerVectorIsEqualByPosition(IntegerVector p1, IntegerVector p2) {
    2828      bool equal = (p1.Length == p2.Length);
    2929      if (equal) {
  • trunk/sources/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Tests/DiscreteCrossoverTest.cs

    r3059 r3061  
    7676      exceptionFired = false;
    7777      try {
    78         IntArray actual;
     78        IntegerVector actual;
    7979        actual = target.Cross(random, parents);
    8080      } catch (System.ArgumentException) {
     
    9999      expected = new IntegerVector(new int[] { 2, 2, 3, 5, 8 });
    100100      actual = DiscreteCrossover.Apply(random, parent1, parent2);
    101       Assert.IsTrue(Auxiliary.IntVectorIsEqualByPosition(actual, expected));
     101      Assert.IsTrue(Auxiliary.IntegerVectorIsEqualByPosition(actual, expected));
    102102
    103103      // The following test is not based on published examples
  • trunk/sources/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Tests/SinglePointCrossoverTest.cs

    r3059 r3061  
    111111      expected = new IntegerVector(new int[] { 2, 2, 3, 2, 8 });
    112112      actual = SinglePointCrossover.Apply(random, parent1, parent2);
    113       Assert.IsTrue(Auxiliary.IntVectorIsEqualByPosition(actual, expected));
     113      Assert.IsTrue(Auxiliary.IntegerVectorIsEqualByPosition(actual, expected));
    114114      // The following test is not based on published examples
    115115      random.Reset();
  • trunk/sources/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/Tests/UniformOnePositionManipulatorTest.cs

    r3059 r3061  
    9595      max = new IntValue(7);
    9696      UniformOnePositionManipulator.Apply(random, parent, min, max);
    97       Assert.IsTrue(Auxiliary.IntVectorIsEqualByPosition(expected, parent));
     97      Assert.IsTrue(Auxiliary.IntegerVectorIsEqualByPosition(expected, parent));
    9898    }
    9999
Note: See TracChangeset for help on using the changeset viewer.