Changeset 12763
 Timestamp:
 07/15/15 10:34:33 (6 years ago)
 Location:
 branches/HeuristicLab.Problems.GrammaticalOptimization
 Files:

 1 added
 1 edited
Legend:
 Unmodified
 Added
 Removed

branches/HeuristicLab.Problems.GrammaticalOptimization/Test/TestInstances.cs
r11865 r12763 143 143 Console.WriteLine(p.Grammar); 144 144 145 // one possible optimal solution: iffoodahead (move) ( left left iffoodahead (move) (right)) move right145 // all possible minimal solutions to the artificial ant problem 146 146 Assert.AreEqual(89, p.Evaluate("?(m)(ll?(m)(r))mr")); 147 Assert.AreEqual(89, p.Evaluate("?(m)(rr?(m)(l))ml")); 148 Assert.AreEqual(89, p.Evaluate("r?(m)(ll?(m)(r))m")); 149 Assert.AreEqual(89, p.Evaluate("l?(m)(rr?(m)(l))m")); 150 Assert.AreEqual(89, p.Evaluate("mr?(m)(ll?(m)(r))")); 151 Assert.AreEqual(89, p.Evaluate("ml?(m)(rr?(m)(l))")); 152 Assert.AreEqual(89, p.Evaluate("?(m)(ll?(m)(l))ml")); 153 Assert.AreEqual(89, p.Evaluate("?(m)(rr?(m)(r))mr")); 154 Assert.AreEqual(89, p.Evaluate("l?(m)(ll?(m)(l))m")); 155 Assert.AreEqual(89, p.Evaluate("r?(m)(rr?(m)(r))m")); 156 Assert.AreEqual(89, p.Evaluate("ml?(m)(ll?(m)(l))")); 157 Assert.AreEqual(89, p.Evaluate("mr?(m)(rr?(m)(r))")); 147 158 } 148 159
Note: See TracChangeset
for help on using the changeset viewer.