groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy] 03/07: Fix minor mismatch between text and code (closes #907)
Date Fri, 12 Apr 2019 00:38:33 GMT
This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch GROOVY_2_5_X
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 6f942d2e42a4bf29933f90994a7c41216a8a0cd7
Author: Michael Kutz <michael.kutz@rewe-digital.com>
AuthorDate: Tue Apr 9 13:23:57 2019 +0200

    Fix minor mismatch between text and code (closes #907)
    
    In the test below the code sample March 1st, but the code creates a
    March 2nd.
---
 .../src/spec/test/gdk/WorkingWithDateTimeTypesTest.groovy               | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/subprojects/groovy-datetime/src/spec/test/gdk/WorkingWithDateTimeTypesTest.groovy
b/subprojects/groovy-datetime/src/spec/test/gdk/WorkingWithDateTimeTypesTest.groovy
index baed5fc..07eee46 100644
--- a/subprojects/groovy-datetime/src/spec/test/gdk/WorkingWithDateTimeTypesTest.groovy
+++ b/subprojects/groovy-datetime/src/spec/test/gdk/WorkingWithDateTimeTypesTest.groovy
@@ -80,7 +80,7 @@ class WorkingWithDateTimeTypesTest extends GroovyTestCase {
 
     void testUptoCustomUnit() {
         // tag::date_upto_date_by_months[]
-        def start = LocalDate.of(2018, Month.MARCH, 2)
+        def start = LocalDate.of(2018, Month.MARCH, 1)
         def end = start + 1 // 1 day later
 
         int iterationCount = 0


Mime
View raw message