Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bugs in test/scalacheck #10163

Merged
merged 1 commit into from
Sep 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 1 addition & 3 deletions test/scalacheck/TreeSeqMapTest.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import scala.collection.immutable.TreeSeqMap

import org.scalacheck._
import Arbitrary.arbitrary
import Prop._
import Gen._

object TreeSeqMapTest extends Properties("TreeSeqMap") {
property("transitive test") = {
Expand All @@ -24,7 +22,7 @@ object TreeSeqMapTest extends Properties("TreeSeqMap") {
m1 != m2 ==> {
val vm1 = TreeSeqMap.from(m1)
val vm2 = TreeSeqMap.from(m2)
m1 != m2
vm1 != vm2
}
}
}
5 changes: 4 additions & 1 deletion test/scalacheck/t2460.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import org.scalacheck.Prop.forAll
import org.scalacheck.Properties
import org.scalacheck.{Test => SCTest}
import org.scalacheck.Gen

object SI2460Test extends Properties("Regex : Ticket 2460") {
Expand All @@ -24,4 +23,8 @@ object SI2460Test extends Properties("Regex : Ticket 2460") {
("numberOfGroup", numberOfGroup),
("nameOfGroup", nameOfGroup)
)

for {
(label, prop) <- tests
} property(label) = prop
}