typelevel / scalacheck

Property-based testing for Scala
http://www.scalacheck.org
BSD 3-Clause "New" or "Revised" License
1.94k stars 407 forks source link

Very minor issue in Gen.scala companion object #913

Closed ModisR closed 2 years ago

ModisR commented 2 years ago

On lines 1519-1525, we see the following snippet:

    val endOfDayGen: Gen[Calendar] =
      calendar.map(c => adjust(c) { c =>
        c.set(HOUR_OF_DAY, 23)
        c.set(MINUTE, 59)
        c.set(SECOND, 59)
        c.set(MILLISECOND, 59)
      })

The milliseconds are set to 59 when they should presumably be 999.