diff --git a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestRoundFuncs.java b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestRoundFuncs.java index e32a5a333b..a0c4b7d7ca 100644 --- a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestRoundFuncs.java +++ b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestRoundFuncs.java @@ -53,6 +53,14 @@ final class TestRoundFuncs { assertEquals(ErrorEval.VALUE_INVALID, result); } + @Test + void testGithub321() { + ValueEval strArg = new NumberEval(2.05); + ValueEval[] args = { strArg, new NumberEval(1), }; + NumberEval result = (NumberEval)NumericFunction.ROUND.evaluate(args, -1, (short)-1); + assertEquals(2.1, result.getNumberValue()); + } + @Test void testRoundUpWithStringArg() { ValueEval strArg = new StringEval("abc");