Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/23/14 16:00:53 (10 years ago)
Author:
bburlacu
Message:

#2215: Added a couple more test cases in the matching unit test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BottomUpTreeDistance/HeuristicLab.Tests/BottomUpSimilarityCalculatorTest.cs

    r11219 r11220  
    3333      TestMatchedNodes("(+ 1 2)", "(+ 2 1)", 5);
    3434      TestMatchedNodes("(- 2 1)", "(- 1 2)", 2);
     35
     36      TestMatchedNodes("(* (variable 1 X1) (variable 1 X2))", "(* (+ (variable 1 X1) 1) (variable 1 X2))", 2);
     37
     38      TestMatchedNodes("(+ (variable 1 a) (variable 1 b))", "(+ (variable 1 a) (variable 1 a))", 1);
     39      TestMatchedNodes("(+ (+ (variable 1 a) (variable 1 b)) (variable 1 b))", "(+ (* (+ (variable 1 a) (variable 1 b)) (variable 1 b)) (+ (+ (variable 1 a) (variable 1 b)) (variable 1 b)))", 5);
    3540
    3641      TestMatchedNodes(
Note: See TracChangeset for help on using the changeset viewer.