This will "shrink" a regular expression down into similar but simpler regular expressions.
This will "shrink" a regular expression down into similar but simpler regular expressions. It
isn't implicit
, because in Scalacheck shrinking isn't integrated into generators which can
lead to confusing results. If you'd like to shrink your regular expression to debug it, you can
create a local Shrink
instance with something like:
implicit val shrinkForCharRegex: Shrink[Regex[Char]] = RegexShrink.shrinkForRegex`