Changeset 13469 for branches/ProblemRefactoring/HeuristicLab.Tests/HeuristicLab.Encodings.ScheduleEncoding-3.3/JSMSXXCrossoverTest.cs
- Timestamp:
- 12/15/15 15:16:24 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemRefactoring/HeuristicLab.Tests/HeuristicLab.Encodings.ScheduleEncoding-3.3/JSMSXXCrossoverTest.cs
r12012 r13469 22 22 using HeuristicLab.Core; 23 23 using HeuristicLab.Encodings.PermutationEncoding; 24 using HeuristicLab.Encodings.ScheduleEncoding.JobSequenceMatrix;25 24 using HeuristicLab.Tests; 26 25 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 40 39 [TestProperty("Time", "short")] 41 40 public void ApplyTest() { 42 IRandom random = new TestRandom(new int[] { 3 }, null);41 IRandom random = new TestRandom(new int[] { 0, 3 }, null); 43 42 JSMEncoding p1 = TestUtils.CreateTestJSM1(); 44 43 JSMEncoding p2 = TestUtils.CreateTestJSM2(); 45 JSMEncoding expected = new JSMEncoding( );46 ItemList<Permutation> jsm = new ItemList<Permutation>();44 JSMEncoding expected = new JSMEncoding(0); 45 ItemList<Permutation> jsm = expected.JobSequenceMatrix; 47 46 for (int i = 0; i < 6; i++) { 48 47 jsm.Add(new Permutation(PermutationTypes.Absolute, new int[] { 2, 1, 0, 3, 4, 5 })); 49 48 } 50 expected.JobSequenceMatrix = jsm;51 49 52 50 JSMEncoding actual;
Note: See TracChangeset
for help on using the changeset viewer.