Skip to content

Commit 1f6994e

Browse files
tmucha82fedefernandez
authored andcommitted
Fixed granularity test (#26)
There were problem with section (zdt.getMonth == Month.JANUARY),. There were && missing.
1 parent 671bcd1 commit 1f6994e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/scalachecklib/ScalacheckDatetimeSection.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ object ScalacheckDatetimeSection
9494

9595
check {
9696
forAll { zdt: ZonedDateTime =>
97-
zdt.getMonth == Month.JANUARY
97+
(zdt.getMonth == Month.JANUARY) &&
9898
(zdt.getDayOfMonth == res0) &&
9999
(zdt.getHour == res1) &&
100100
(zdt.getMinute == res2) &&

0 commit comments

Comments
 (0)