You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 20, 2018. It is now read-only.
I'm getting a weird behavior in scalacheck while generating Map[Int, List[Int]] with an automatically derived Arbitrary. The issue can be reproduced with the following test, to be added to scalacheck/test/scala/ShrinkSpec.scala:
[info] !Map.map:Gave up after only 62 passed tests. 312 tests were discarded.
Any idea of what's going on here? My quick work around is to generate a Map[A, B] from a List[(A, B)] (I also have a generalized version to build anything with a CanBuildFrom from a List):
I'm getting a weird behavior in scalacheck while generating
Map[Int, List[Int]]
with an automatically derivedArbitrary
. The issue can be reproduced with the following test, to be added toscalacheck/test/scala/ShrinkSpec.scala
:Which leads to a:
Any idea of what's going on here? My quick work around is to generate a
Map[A, B]
from aList[(A, B)]
(I also have a generalized version to build anything with aCanBuildFrom
from aList
):The text was updated successfully, but these errors were encountered: