public void AddMultSigns_RootAfterPiInsertsAsterix() { var equation = "155315(#@(14)(37^3))"; var expected = "155315*(#*@(14)*(37^3))"; var actual = Standardizer.AddMultSigns(equation); Assert.AreEqual(expected, actual); }
public void AddMultSigns_ClosingBracketBeforeOpeningBracketInsertsAsterix() { var equation = "(14-8)(6+7)+9"; var expected = "(14-8)*(6+7)+9"; var actual = Standardizer.AddMultSigns(equation); Assert.AreEqual(expected, actual); }
public void AddMultSigns_PiAfterNumberAndBracketInsertsAsterix(string equation, string expected) { var actual = Standardizer.AddMultSigns(equation); Assert.AreEqual(expected, actual); }