Free cookie consent management tool by TermsFeed Policy Generator

Changeset 16194 for branches


Ignore:
Timestamp:
09/28/18 15:40:59 (6 years ago)
Author:
bburlacu
Message:

#2886: Fix compilation errors in test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2886_SymRegGrammarEnumeration/Test/TreeHashingTest.cs

    r16193 r16194  
    136136      int hash1 = ComputeHash(grammar, s1);
    137137      int hash2 = ComputeHash(grammar, s2);
    138 
    139       Console.WriteLine(s1);
    140       Console.WriteLine(PrintTree(s1));
    141       Console.WriteLine(grammar.Simplify(null, s1));
    142       Console.WriteLine(hash1);
    143       Console.WriteLine();
    144       Console.WriteLine(s2);
    145       Console.WriteLine(PrintTree(s2));
    146       Console.WriteLine(grammar.Simplify(null, s2));
    147       Console.WriteLine(hash2);
    148 
    149138
    150139      Assert.AreEqual(hash1, hash2);
     
    239228    }
    240229
    241     string PrintTree(SymbolList s) {
    242       var t = grammar.ParseSymbolicExpressionTree(s);
    243       return HierarchicalFormatter.Format(t.Root.GetSubtree(0).GetSubtree(0));
    244     }
    245 
    246230    [TestMethod]
    247231    [TestCategory("TreeHashing")]
     
    280264            Console.WriteLine($"\t{simplified}");
    281265            Console.Write($"\t");
    282             PrintTree(t.Item2);
    283266            Console.WriteLine();
    284267          }
Note: See TracChangeset for help on using the changeset viewer.