Skip to content

Commit

Permalink
#1365 - Added unit test for NUMBERVALUE function called with an empty…
Browse files Browse the repository at this point in the history
… string
  • Loading branch information
swmal committed Mar 20, 2024
1 parent cef259e commit 38608b9
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,14 @@ public void UnicharShouldReturnCorrectChar()
Assert.AreEqual("a", result.Result);
}

[TestMethod]
public void NumberValueWithEmptyStringShouldReturn0()
{
var func = new NumberValue();
var result = func.Execute(FunctionsHelper.CreateArgs(""), _parsingContext);
Assert.AreEqual(0d, result.Result);
}

[TestMethod]
public void NumberValueShouldCastIntegerValue()
{
Expand Down

0 comments on commit 38608b9

Please sign in to comment.