Skip to content

Commit

Permalink
Add ScalaCheckSeedSuite
Browse files Browse the repository at this point in the history
  • Loading branch information
gabro committed May 8, 2020
1 parent e3a25cf commit d7b67c7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/shared/src/test/scala/munit/ScalaCheckSeedSuite.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package munit

import scala.collection.mutable
import org.scalacheck.Prop.forAll

// Regression test for https://github.com/scalameta/munit/issues/118
final class ScalaCheckSeedSuite extends ScalaCheckSuite {

private val ints = mutable.Set.empty[Int]

property("generating int") {
forAll { (i: Int) =>
ints.add(i)
true
}
}

test("generated int are not all the same") {
assert(ints.size > 1)
}
}

0 comments on commit d7b67c7

Please sign in to comment.