- Timestamp:
- 07/23/14 22:49:51 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.BottomUpTreeDistance/HeuristicLab.Tests/BottomUpSimilarityCalculatorTest.cs
r11220 r11221 8 8 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 9 9 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views; 10 using HeuristicLab.Problems.DataAnalysis.Symbolic.SimilarityCalculators;11 10 using HeuristicLab.Random; 12 11 using Microsoft.VisualStudio.TestTools.UnitTesting; … … 33 32 TestMatchedNodes("(+ 1 2)", "(+ 2 1)", 5); 34 33 TestMatchedNodes("(- 2 1)", "(- 1 2)", 2); 34 TestMatchedNodes("(* (variable 1 X1) (variable 1 X2))", "(* (+ (variable 1 X1) 1) (+ (variable 1 X2) 1))", 2); 35 35 36 36 TestMatchedNodes("(* (variable 1 X1) (variable 1 X2))", "(* (+ (variable 1 X1) 1) (variable 1 X2))", 2); … … 52 52 var t2 = importer.Import(expr2); 53 53 54 var mapping = busCalculator.ComputeBottomUpMapping(t1 , t2);54 var mapping = busCalculator.ComputeBottomUpMapping(t1.Root, t2.Root); 55 55 var c = mapping.Count; 56 56
Note: See TracChangeset
for help on using the changeset viewer.