You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2019/04/12 00:38:33 UTC
[groovy] 03/07: Fix minor mismatch between text and code (closes
#907)
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 <mi...@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