groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy] branch master updated: Fix minor mismatch between text and code (closes #907)
Date Tue, 09 Apr 2019 12:36:11 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new a4d2960  Fix minor mismatch between text and code (closes #907)
a4d2960 is described below

commit a4d29607ea57b1430eaf780bcaa0383198324e56
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