Improved code coverage

This commit is contained in:
Jim
2023-09-08 17:36:55 +01:00
parent 5be2ea6e23
commit 6ef53e7a96

View File

@@ -30,20 +30,20 @@ namespace MathEngine.Parser.Parser
this.rootNode = rootNode;
}
/// <summary>
/* /// <summary>
/// Evaluates the current instance of ExpressionTree
/// </summary>
/// <returns>Returns an update of the current instance which the expression Evaluated</returns>
public ExpressionTree Evaluate()
{
return new ExpressionTree(rootNode.Evaluate());
}
}*/
/// <summary>
/// Returns a value indicating if the given object is equal to the current instance of ExpressionTree
/// </summary>
/// <param name="other">The object to compare to the current instance</param>
/// <returns>True if they are equal, False otherwise</returns>
/// Returns a value indicating if the given object is equal to the current instance of ExpressionTree
/// </summary>
/// <param name="other">The object to compare to the current instance</param>
/// <returns>True if they are equal, False otherwise</returns>
public override bool Equals(object? other)
{
if (other is BaseNode)