mirror of
https://github.com/0xJ1M/MathsEngine.git
synced 2026-06-05 03:20:07 +00:00
Improved code coverage
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user