/[Apache-SVN]
ViewVC logotype

Revision 488926


Jump to revision: Previous Next
Author: bayard
Date: Wed Dec 20 06:10:26 2006 UTC (17 years, 10 months ago)
Changed paths: 2
Log Message:
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 :)

Changed paths

Path Details
Directoryjakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/time/DurationFormatUtils.java modified , text changed
Directoryjakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DurationFormatUtilsTest.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26