haskell / time

A time library
http://hackage.haskell.org/package/time
Other
118 stars 78 forks source link

Test failure #177

Closed AshleyYakeley closed 2 years ago

AshleyYakeley commented 3 years ago

Failed in build.

format_parse_format.general.LocalTime

            LocalTime:                                                            FAIL (0.51s)
              *** Failed! expected Just "-100", found Nothing (after 25433 tests and 5 shrinks):
              %0f
              -9900-01-01 00:00:00
              Use --quickcheck-replay=256787 to reproduce.
AshleyYakeley commented 2 years ago

The "century number" (y / 100 rounded down) for year -9900 is -100, which is more than two digits. Solution: test from -9899.

AshleyYakeley commented 2 years ago

Fixed.