Skip to content

Commit

Permalink
Merge pull request #449 from armanbilge/fix/unit-to-prop
Browse files Browse the repository at this point in the history
  • Loading branch information
gabro authored Oct 24, 2021
2 parents c23f8ae + aac4820 commit 6f34e21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ lazy val mimaEnable: List[Def.Setting[_]] = List(
),
ProblemFilters.exclude[IncompatibleMethTypeProblem](
"munit.ValueTransforms#ValueTransform.this"
),
ProblemFilters.exclude[DirectMissingMethodProblem](
"munit.ScalaCheckSuite.unitToProp"
)
),
mimaPreviousArtifacts := {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ trait ScalaCheckSuite extends FunSuite {
// Allow property bodies of type Unit
// This is done to support using MUnit assertions in property bodies
// instead of returning a Boolean.
implicit def unitToProp: Unit => Prop = _ => Prop.passed
implicit def unitToProp(unit: Unit): Prop = Prop.passed

override def munitTestTransforms: List[TestTransform] =
super.munitTestTransforms :+ scalaCheckPropTransform
Expand Down

0 comments on commit 6f34e21

Please sign in to comment.