Closed peterwicksstringfield closed 1 year ago
Thanks for the bug report! You're right: that code is obviously nonsense. I can only guess I meant to do iterate (*2) 1
in the first two cases, and the infinity test should look at the absolute value of x.
It looks like shrinkRealFrac can't shrink negative numbers and goes into an infinite loop on positive infinity. shrinkDecimal handles negatives okay but has the same problem on positive infinity.
This is with
Looks to me like the problem is:
Test/QuickCheck/Arbitrary.hs line 1221