Changeset 4068 for trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Tests/SimulatedBinaryCrossoverTest.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/SimulatedBinaryCrossoverTest.cs
r3742 r4068 20 20 #endregion 21 21 22 using HeuristicLab.Core; 23 using HeuristicLab.Data; 22 24 using HeuristicLab.Encodings.RealVectorEncoding; 23 25 using Microsoft.VisualStudio.TestTools.UnitTesting; 24 using HeuristicLab.Common;25 using HeuristicLab.Core;26 using HeuristicLab.Data;27 using HeuristicLab.Parameters;28 26 29 27 namespace HeuristicLab.Encodings.RealVectorEncoding_33.Tests { … … 112 110 RealVector actual; 113 111 actual = target.Cross(random, parents); 114 } catch (System.ArgumentException) { 112 } 113 catch (System.ArgumentException) { 115 114 exceptionFired = true; 116 115 } … … 145 144 try { 146 145 actual = SimulatedBinaryCrossover.Apply(random, parent1, parent2, contiguity); 147 } catch (System.ArgumentException) { 146 } 147 catch (System.ArgumentException) { 148 148 exceptionFired = true; 149 149 } … … 153 153 random.DoubleNumbers = new double[] { 0.3, 0.9, 0.7, 0.2, 0.8, 0.1, 0.2, 0.3, 0.4, 0.8, 0.7 }; 154 154 contiguity = new DoubleValue(-0.3); // contiguity < 0 155 parent1 = new RealVector(new double[] { 0.2, 0.2, 0.3, 0.5, 0.1 });155 parent1 = new RealVector(new double[] { 0.2, 0.2, 0.3, 0.5, 0.1 }); 156 156 parent2 = new RealVector(new double[] { 0.4, 0.1, 0.3, 0.2, 0.8 }); 157 157 exceptionFired = false;
Note: See TracChangeset
for help on using the changeset viewer.