Changeset 4068 for trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Tests/LocalCrossoverTest.cs
- Timestamp:
- 07/22/10 00:44:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Tests/LocalCrossoverTest.cs
r3742 r4068 20 20 #endregion 21 21 22 using HeuristicLab.Core; 22 23 using HeuristicLab.Encodings.RealVectorEncoding; 23 24 using Microsoft.VisualStudio.TestTools.UnitTesting; 24 using HeuristicLab.Common;25 using HeuristicLab.Core;26 using HeuristicLab.Data;27 using HeuristicLab.Parameters;28 25 29 26 namespace HeuristicLab.Encodings.RealVectorEncoding_33.Tests { … … 112 109 RealVector actual; 113 110 actual = target.Cross(random, parents); 114 } catch (System.ArgumentException) { 111 } 112 catch (System.ArgumentException) { 115 113 exceptionFired = true; 116 114 } … … 136 134 // The following test is not based on published examples 137 135 random.Reset(); 138 random.DoubleNumbers = new double[] { 0.3, 0.1, 0.2, 0.4, 0.23, 0.5 };136 random.DoubleNumbers = new double[] { 0.3, 0.1, 0.2, 0.4, 0.23, 0.5 }; 139 137 parent1 = new RealVector(new double[] { 0.2, 0.2, 0.3, 0.5, 0.1, 0.9 }); // this parent is longer 140 138 parent2 = new RealVector(new double[] { 0.4, 0.1, 0.3, 0.2, 0.8 }); … … 142 140 try { 143 141 actual = LocalCrossover.Apply(random, parent1, parent2); 144 } catch (System.ArgumentException) { 142 } 143 catch (System.ArgumentException) { 145 144 exceptionFired = true; 146 145 }
Note: See TracChangeset
for help on using the changeset viewer.