- Timestamp:
- 02/28/18 19:09:34 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2886_SymRegGrammarEnumeration/Test/TreeHashingTest.cs
r15821 r15824 170 170 Assert.AreNotEqual(hash1, hash2); 171 171 }*/ 172 173 #region parser174 175 [TestMethod]176 [TestCategory("Parser")]177 public void InfixParserSimpleTest() {178 SymbolString postfix = new SymbolString(new[] { varA, varB, varC, grammar.Addition, grammar.Addition });179 SymbolString infix = new SymbolString(new[] { varA, grammar.Addition, varB, grammar.Addition, varC });180 181 Assert.AreEqual(infix.ToString(), grammar.ToInfixString(postfix));182 }183 184 [TestMethod]185 [TestCategory("Parser")]186 public void InfixParserComplexTest() {187 SymbolString postfix = new SymbolString(new[] { varB, varA, varB, varC, grammar.Multiplication, grammar.Addition, grammar.Addition });188 SymbolString infix = new SymbolString(new[] { varB, grammar.Addition, varA, grammar.Addition, varB, grammar.Multiplication, varC });189 190 Assert.AreEqual(infix.ToString(), grammar.ToInfixString(postfix));191 }192 193 #endregion194 172 } 195 173 }
Note: See TracChangeset
for help on using the changeset viewer.