git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899690 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2022-04-09 21:17:49 +00:00
parent 2c4abb60f5
commit 6774dd441b
1 changed files with 8 additions and 0 deletions

View File

@ -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");