Changeset 4068 for trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Tests/DiscreteCrossoverTest.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/DiscreteCrossoverTest.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 { … … 100 97 RealVector actual; 101 98 actual = target.Cross(random, parents); 102 } catch (System.ArgumentException) { 99 } 100 catch (System.ArgumentException) { 103 101 exceptionFired = true; 104 102 } … … 120 118 parent1 = new RealVector(new double[] { 0.2, 0.2, 0.3, 0.5, 0.1 }); 121 119 parent2 = new RealVector(new double[] { 0.4, 0.1, 0.3, 0.2, 0.8 }); 122 parents = new ItemArray<RealVector>( new RealVector[] { parent1, parent2 });120 parents = new ItemArray<RealVector>(new RealVector[] { parent1, parent2 }); 123 121 expected = new RealVector(new double[] { 0.2, 0.2, 0.3, 0.5, 0.8 }); 124 122 actual = DiscreteCrossover.Apply(random, parents); … … 133 131 try { 134 132 actual = DiscreteCrossover.Apply(random, parents); 135 } catch (System.ArgumentException) { 133 } 134 catch (System.ArgumentException) { 136 135 exceptionFired = true; 137 136 }
Note: See TracChangeset
for help on using the changeset viewer.