Skip to content

Commit

Permalink
Merge pull request #564 from armanbilge/patch-4
Browse files Browse the repository at this point in the history
Use `def` to override `scalaCheckInitialSeed`
  • Loading branch information
valencik authored Aug 17, 2022
2 parents 319e386 + 3ad12f1 commit 2fea01d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/integrations/scalacheck.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ a suggestion on how to reproduce it:
Failing seed: CTH6hXj8ViScMmsO78-k4_RytXHPK_wSJYNH2h4dCpB=
You can reproduce this failure by adding the following override to your suite:
override val scalaCheckInitialSeed = "CTH6hXj8ViScMmsO78-k4_RytXHPK_wSJYNH2h4dCpB="
override def scalaCheckInitialSeed = "CTH6hXj8ViScMmsO78-k4_RytXHPK_wSJYNH2h4dCpB="
```

Expand All @@ -140,7 +140,7 @@ To reproduce the failure you can follow the suggestion to fix the seed:
```diff
class MySuite extends ScalaCheckSuite {

+ override val scalaCheckInitialSeed = "CTH6hXj8ViScMmsO78-k4_RytXHPK_wSJYNH2h4dCpB="
+ override def scalaCheckInitialSeed = "CTH6hXj8ViScMmsO78-k4_RytXHPK_wSJYNH2h4dCpB="

// ...
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ trait ScalaCheckSuite extends FunSuite {
s"""|Failing seed: ${initialSeed.toBase64}
|You can reproduce this failure by adding the following override to your suite:
|
| override val scalaCheckInitialSeed = "${initialSeed.toBase64}"
| override def scalaCheckInitialSeed = "${initialSeed.toBase64}"
|""".stripMargin
seedMessage + "\n" + resultMessage
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ScalaCheckExceptionFrameworkSuites
|==> failure munit.ScalaCheckExceptionFrameworkSuite.hide my stacks - Failing seed: 9WNU_CSZAQwiiPWDlHs4NWI-knIDEKCsgGqdhZgNKnB=
|You can reproduce this failure by adding the following override to your suite:
|
| override val scalaCheckInitialSeed = "9WNU_CSZAQwiiPWDlHs4NWI-knIDEKCsgGqdhZgNKnB="
| override def scalaCheckInitialSeed = "9WNU_CSZAQwiiPWDlHs4NWI-knIDEKCsgGqdhZgNKnB="
|
|Exception raised on property evaluation.
|> ARG_0: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ object ScalaCheckFrameworkSuite
|Failing seed: CTH6hXj8ViScMmsO78-k4_RytXHPK_wSJYNH2h4dCpB=
|You can reproduce this failure by adding the following override to your suite:
|
| override val scalaCheckInitialSeed = "CTH6hXj8ViScMmsO78-k4_RytXHPK_wSJYNH2h4dCpB="
| override def scalaCheckInitialSeed = "CTH6hXj8ViScMmsO78-k4_RytXHPK_wSJYNH2h4dCpB="
|
|Falsified after 0 passed tests.
|> ARG_0: -1
Expand All @@ -80,7 +80,7 @@ object ScalaCheckFrameworkSuite
|Failing seed: CTH6hXj8ViScMmsO78-k4_RytXHPK_wSJYNH2h4dCpB=
|You can reproduce this failure by adding the following override to your suite:
|
| override val scalaCheckInitialSeed = "CTH6hXj8ViScMmsO78-k4_RytXHPK_wSJYNH2h4dCpB="
| override def scalaCheckInitialSeed = "CTH6hXj8ViScMmsO78-k4_RytXHPK_wSJYNH2h4dCpB="
|
|Falsified after 0 passed tests.
|> ARG_0: -1
Expand Down

0 comments on commit 2fea01d

Please sign in to comment.