mirror of https://github.com/apache/poi.git
add test
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899690 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2c4abb60f5
commit
6774dd441b
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue