ASF Bugzilla – Attachment 34169 Details for
Bug 60029
Problem with Days360 method for the month of february
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Failing unit test
bug60029_failing_unit_test.patch (text/plain), 1.19 KB, created by
Javen O'Neal
on 2016-08-22 16:13:52 UTC
(
hide
)
Description:
Failing unit test
Filename:
MIME Type:
Creator:
Javen O'Neal
Created:
2016-08-22 16:13:52 UTC
Size:
1.19 KB
patch
obsolete
>Index: src/testcases/org/apache/poi/ss/formula/functions/TestDays360.java >=================================================================== >--- src/testcases/org/apache/poi/ss/formula/functions/TestDays360.java (revision 1757106) >+++ src/testcases/org/apache/poi/ss/formula/functions/TestDays360.java (working copy) >@@ -67,6 +67,24 @@ > confirm(-2, makeDate(1993, 2, 28), makeDate(1993, 2, 28), false); > confirm(3, makeDate(1993, 2, 28), makeDate(1993, 3, 1), true); > confirm(2, makeDate(1996, 2, 29), makeDate(1996, 3, 1), true); >+ >+ // bug 60029 >+ Date start = makeDate(2018, 02, 28); >+ Date end = makeDate(2018, 03, 31); >+ confirm(30, start, end, false); >+ >+ // examples from https://support.office.com/en-us/article/DAYS360-function-B9A509FD-49EF-407E-94DF-0CBDA5718C2A >+ start = makeDate(2011, 01, 30); >+ end = makeDate(2011, 02, 01); >+ confirm(1, start, end, false); >+ >+ start = makeDate(2011, 01, 01); >+ end = makeDate(2011, 12, 31); >+ confirm(360, start, end, false); >+ >+ start = makeDate(2011, 01, 01); >+ end = makeDate(2011, 02, 01); >+ confirm(30, start, end, false); > } > > private static void confirm(int expResult, int y1, int m1, int d1, int y2, int m2, int d2) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 60029
:
34168
| 34169