- Timestamp:
- 01/13/10 15:43:55 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.Tests/NetworkToFunctionTransformerTest.cs
r2622 r2624 85 85 IFunctionTree expected = log.GetTreeNode(); expected.AddSubTree(param.GetTreeNode()); 86 86 IFunctionTree actual; 87 actual = NetworkToFunctionTransformer_Accessor.Invert Function(tree);87 actual = NetworkToFunctionTransformer_Accessor.InvertChain(tree); 88 88 var e = (from x in FunctionTreeIterator.IteratePostfix(expected) 89 89 select x.Function.GetType()).GetEnumerator(); … … 121 121 IEnumerable<IFunctionTree> actualTrees = NetworkToFunctionTransformer_Accessor.Transform(tree, new List<string>() { "a", "b", "c" }); 122 122 123 IFunctionTree t0 = importer.Import("(- (+ 1.0 (variable 1.0 b 0)) (* 1.0 (variable 1.0 c 0)))");124 IFunctionTree t1 = importer.Import("(- (+ (variable 1.0 a 0) (* 1.0 (variable 1.0 c 0) 1.0)))");125 IFunctionTree t2 = importer.Import("(/ (+ (variable 1.0 a 0) (+ 1.0 (variable 1.0 b 0) 1.0)))");123 IFunctionTree t0 = importer.Import("(- (+ (variable 1.0 b 0) 1.0) (* (variable 1.0 c 0) 1.0 ))"); 124 IFunctionTree t1 = importer.Import("(- (+ (variable 1.0 a 0) (* (variable 1.0 c 0) 1.0)) 1.0 )"); 125 IFunctionTree t2 = importer.Import("(/ (+ (variable 1.0 a 0) (+ (variable 1.0 b 0) 1.0)) 1.0 )"); 126 126 127 127 CompareTrees(actualTrees, new List<IFunctionTree>() {
Note: See TracChangeset
for help on using the changeset viewer.