From bd963fba5124714ec1e1fa2c2270f5bcf3b841ff Mon Sep 17 00:00:00 2001 From: dondonz <13839920+dondonz@users.noreply.github.com> Date: Sat, 16 Aug 2025 17:55:54 +1000 Subject: [PATCH] Fix test case --- .../graphql/scalars/datetime/DateTimeScalarTest.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/groovy/graphql/scalars/datetime/DateTimeScalarTest.groovy b/src/test/groovy/graphql/scalars/datetime/DateTimeScalarTest.groovy index d68948b..d8cb915 100644 --- a/src/test/groovy/graphql/scalars/datetime/DateTimeScalarTest.groovy +++ b/src/test/groovy/graphql/scalars/datetime/DateTimeScalarTest.groovy @@ -69,7 +69,7 @@ class DateTimeScalarTest extends AbstractScalarTest { "2011-08-30T13:22:53.108" | CoercingParseValueException // No offset provided "2011-08-30T24:22:53.108Z" | CoercingParseValueException // 24 is not allowed as hour of the time "2010-02-30T21:22:53.108Z" | CoercingParseValueException // 30th of February is not a valid date - "2010-02-11T21:22:53.108Z+25:11" | CoercingParseValueException // 25 is not a valid hour for offset + "2010-02-11T21:22:53.108+25:11" | CoercingParseValueException // 25 is not a valid hour for offset } def "datetime AST literal"() { @@ -114,7 +114,7 @@ class DateTimeScalarTest extends AbstractScalarTest { "2011-08-30T13:22:53.108" | CoercingSerializeException // No offset provided "2011-08-30T24:22:53.108Z" | CoercingSerializeException // 24 is not allowed as hour of the time "2010-02-30T21:22:53.108Z" | CoercingSerializeException // 30th of February is not a valid date - "2010-02-11T21:22:53.108Z+25:11" | CoercingSerializeException // 25 is not a valid hour for offset + "2010-02-11T21:22:53.108+25:11" | CoercingSerializeException // 25 is not a valid hour for offset } @Unroll @@ -133,7 +133,7 @@ class DateTimeScalarTest extends AbstractScalarTest { mkStringValue("2011-08-30T13:22:53.108") | CoercingParseLiteralException // No offset provided mkStringValue("2011-08-30T24:22:53.108Z") | CoercingParseLiteralException // 24 is not allowed as hour of the time mkStringValue("2010-02-30T21:22:53.108Z") | CoercingParseLiteralException // 30th of February is not a valid date - mkStringValue("2010-02-11T21:22:53.108Z+25:11") | CoercingParseLiteralException // 25 is not a valid hour for offset + mkStringValue("2010-02-11T21:22:53.108+25:11") | CoercingParseLiteralException // 25 is not a valid hour for offset } }