Revision: 4567 http://sourceforge.net/p/vexi/code/4567 Author: mkpg2 Date: 2013-10-11 04:55:11 +0000 (Fri, 11 Oct 2013) Log Message: ----------- Test for clock change issue. Not fixed yet, but not forgotten.
Modified Paths: -------------- branches/vexi3/org.vexi-library.value/src/test/java/org/vexi/value/TestDateTime.java Modified: branches/vexi3/org.vexi-library.value/src/test/java/org/vexi/value/TestDateTime.java =================================================================== --- branches/vexi3/org.vexi-library.value/src/test/java/org/vexi/value/TestDateTime.java 2013-10-10 18:10:05 UTC (rev 4566) +++ branches/vexi3/org.vexi-library.value/src/test/java/org/vexi/value/TestDateTime.java 2013-10-11 04:55:11 UTC (rev 4567) @@ -44,6 +44,13 @@ assertTrue(d0.compareTo(d1)<0); assertTrue(d1.compareTo(d0)>0); } + + public void testClockChangeIssue() throws ValueException{ + Date d1 = Date.tryParseString("2013-10-27 01:00").addPeriod(Date.PART_HOUR, -1); + assertEquals("2013-10-27 00:00",d1.format()); + + } + // // public void testDiff() throws ValueException { // assertEquals(30, Date.newY(2011).diff(Date.PART_YEAR, Date.newY(1981))); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn