You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if the input is a static value then the extension function works correctly
[Test]
public async Task EvaluateCustomMathFunction_PositiveNumber()
{
// Arrange
var exp = new Expression("Pos(-5)");
// Act
var result = await CustomExpressionEvaluation.EvaluateCustomMathFunction(exp);
// Assert
Assert.That(result, Is.EqualTo(0)); // The method should return 0 for negative input
}
what am i missing in my implementation of the extension method?
i have also opened a discussion for it on #22
i have implemented a extension function in ncalc-async like so
the line
always returns zero in case of parameterized input
following is a test case with parameterized input
if the input is a static value then the extension function works correctly
what am i missing in my implementation of the extension method?
i have also opened a discussion for it on #22