Skip to content

Commit

Permalink
Merge pull request #175 from dwijnand/drop-WithExamples
Browse files Browse the repository at this point in the history
Drop WithExamples
  • Loading branch information
dwijnand authored Aug 18, 2020
2 parents 0bfbd9b + aff1b0b commit 161fa25
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
12 changes: 1 addition & 11 deletions core/shared/src/main/scala/hedgehog/core/PropertyT.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,12 @@ case class PropertyConfig(
testLimit: SuccessCount
, discardLimit: DiscardCount
, shrinkLimit: ShrinkLimit
, withExamples: WithExamples
)

object PropertyConfig {

def default: PropertyConfig =
PropertyConfig(SuccessCount(100), DiscardCount(100), ShrinkLimit(1000), WithExamples.NoExamples)
PropertyConfig(SuccessCount(100), DiscardCount(100), ShrinkLimit(1000))
}

case class PropertyT[A](
Expand Down Expand Up @@ -269,15 +268,6 @@ case class DiscardCount(value: Int) {
DiscardCount(value + 1)
}

/** Whether the report should include an example for each label. */
sealed trait WithExamples

object WithExamples {

case object WithExamples extends WithExamples
case object NoExamples extends WithExamples
}

/**
* The status of a property test run.
*
Expand Down
3 changes: 0 additions & 3 deletions runner/shared/src/main/scala/hedgehog/runner/Properties.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ class Test(

def noShrinking: Test =
config(_.copy(shrinkLimit = ShrinkLimit(0)))

def withExamples: Test =
config(_.copy(withExamples = WithExamples.WithExamples))
}

object Test {
Expand Down

0 comments on commit 161fa25

Please sign in to comment.