Skip to content

Commit

Permalink
Merge pull request #468 from nrinaudo/fix-command-shrinking
Browse files Browse the repository at this point in the history
Fix shrinking of failed test cases in Commands
  • Loading branch information
non authored Aug 6, 2019
2 parents 2a73532 + b78e1e5 commit c9f30d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/org/scalacheck/commands/Commands.scala
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ trait Commands {
s: State, seqCmds: Commands, parCmds: List[Commands]
)

private implicit val shrinkActions = Shrink[Actions] { as =>
private implicit val shrinkActions: Shrink[Actions] = Shrink[Actions] { as =>
val shrinkedCmds: Stream[Actions] =
Shrink.shrink(as.seqCmds).map(cs => as.copy(seqCmds = cs)) append
Shrink.shrink(as.parCmds).map(cs => as.copy(parCmds = cs))
Expand Down

0 comments on commit c9f30d4

Please sign in to comment.