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