Changeset 3048 for trunk/sources/HeuristicLab.Encodings.IntVector/3.3/Tests/UniformOnePositionManipulatorTest.cs
- Timestamp:
- 03/15/10 23:49:54 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.IntVector/3.3/Tests/UniformOnePositionManipulatorTest.cs
r3032 r3048 85 85 public void UniformOnePositionManipulatorApplyTest() { 86 86 TestRandom random = new TestRandom(); 87 IntArray Dataparent, expected;88 Int Datamin, max;87 IntArray parent, expected; 88 IntValue min, max; 89 89 // The following test is not based on published examples 90 90 random.Reset(); 91 91 random.IntNumbers = new int[] { 3, 3 }; 92 parent = new IntArray Data(new int[] { 2, 2, 3, 5, 1 });93 expected = new IntArray Data(new int[] { 2, 2, 3, 3, 1 });94 min = new Int Data(2);95 max = new Int Data(7);92 parent = new IntArray(new int[] { 2, 2, 3, 5, 1 }); 93 expected = new IntArray(new int[] { 2, 2, 3, 3, 1 }); 94 min = new IntValue(2); 95 max = new IntValue(7); 96 96 UniformOnePositionManipulator.Apply(random, parent, min, max); 97 97 Assert.IsTrue(Auxiliary.IntVectorIsEqualByPosition(expected, parent));
Note: See TracChangeset
for help on using the changeset viewer.