]> source.dussan.org Git - poi.git/commitdiff
[bug-58468] implement DAYS function
authorPJ Fanning <fanningpj@apache.org>
Sat, 28 May 2022 18:15:21 +0000 (18:15 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sat, 28 May 2022 18:15:21 +0000 (18:15 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1901363 13f79535-47bb-0310-9956-ffa450edef68

poi/src/test/java/org/apache/poi/ss/formula/functions/TestDays.java

index 575eb7a5aa8069986f7f123eabc40c5c358d5208..6acfb2b76a0ba576fcdfad83201aae5d000a4309 100644 (file)
@@ -45,6 +45,7 @@ public class TestDays {
             HSSFCell cell = wb.getSheetAt(0).getRow(0).createCell(12);
             assertDouble(fe, cell, "DAYS(\"15-MAR-2021\",\"1-FEB-2021\")", 42, 0.00000000001);
             assertDouble(fe, cell, "DAYS(A2,A3)", 364, 0.00000000001);
+            assertDouble(fe, cell, "DAYS(\"1-FEB-2021\", \"15-MAR-2021\")", -42, 0.00000000001);
         }
     }