Apache Commons Lang
Go to file
Henri Yandell 4f514d5eb3 More tests, more bugfixes (aka rewrite of the guts).
It's looking much better, the only edge case that throws it for a loop is if things start on the 29th of February in a year. I've hacked it in the day mode, but I'm not sure why I had to do that - however I trust the brute force test to be right in day mode. 
In month mode, it's even trickier as to what the correct answer is. How many months between 29th Feb and 28th of Feb the next year? The answer is 11, or with days included it's 11 months and 28 days. I can't see any reason to define that better, so I'm declaring that law. 

Things are weird if you start on Feb 29 :)

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@488926 13f79535-47bb-0310-9956-ffa450edef68
2006-12-20 06:10:26 +00:00
src More tests, more bugfixes (aka rewrite of the guts). 2006-12-20 06:10:26 +00:00
xdocs Merging 450521 over from https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/branches/LANG_2_2_X - urls added for the jira keys in the upgrade notes 2006-09-27 17:52:40 +00:00
LICENSE.txt Add blank line 2004-02-19 21:23:04 +00:00
NOTICE.txt Fixing the ASF copyright and placing it in the NOTICE file 2006-08-28 06:21:41 +00:00
PROPOSAL.html Fixing the ASF copyright and placing it in the NOTICE file 2006-08-28 06:21:41 +00:00
RELEASE-NOTES.txt Added methods back in that were lost in r397016 (my fault). Testing with jardiff again, there are now no removed or changed methods - in keeping with a minor release. 2006-09-17 20:36:53 +00:00
STATUS.html Fixing the ASF copyright and placing it in the NOTICE file 2006-08-28 06:21:41 +00:00
build.xml Applying -r449108:449370 from the LANG_2_2_X branch to the trunk 2006-09-24 07:01:49 +00:00
checkstyle.xml Fixing the ASF copyright and placing it in the NOTICE file 2006-08-28 06:21:41 +00:00
default.properties Moving trunk to 2.3-SNAPSHOT so we can start working on such things 2006-09-19 20:48:58 +00:00
doap_lang.rdf Adding details of 2.2 release 2006-10-04 18:51:33 +00:00
maven.xml Fixing the ASF copyright and placing it in the NOTICE file 2006-08-28 06:21:41 +00:00
pom.xml Match groupIds for m1 and m2. We should account for the fact that its relatively easier to deploy snaps with m2 (such as IO was last night) and we shouldn't spray component artifacts in two different places (without relocation). 2006-12-06 15:55:07 +00:00
project.properties Setting the maven repo - apologies if this borks anything 2006-12-12 22:11:41 +00:00
project.xml removing unnecessary part of the pom; no xml files in lang's test directory 2006-11-11 06:21:29 +00:00