- Timestamp:
- 12/05/14 10:40:26 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Parameter-less Population Pyramid/ParameterlessPopulationPyramid.Test/LinkageTreeTest.cs
r11656 r11662 1 1 using System; 2 using System.Collections.Generic; 2 3 using System.Linq; 3 using System.Collections;4 using System.Collections.Generic;5 4 using HeuristicLab.Algorithms.ParameterlessPopulationPyramid; 6 5 using HeuristicLab.Random; … … 71 70 tree.Rebuild(rand); 72 71 PrivateObject hidden = new PrivateObject(tree); 73 var ordering = (List<int>)hidden.GetField("cluster _ordering");72 var ordering = (List<int>)hidden.GetField("clusterOrdering"); 74 73 var clusters = (List<int>[])hidden.GetField("clusters"); 75 74 int[][] comparable = new int[ordering.Count][]; 76 for (int i =0; i < ordering.Count; i++) {75 for (int i = 0; i < ordering.Count; i++) { 77 76 var found = clusters[ordering[i]].ToArray(); 78 77 Array.Sort(found); 79 78 Assert.IsTrue(correctClusters[i].SequenceEqual(found)); 80 } 79 } 81 80 } 82 81 }
Note: See TracChangeset
for help on using the changeset viewer.