Skip to content

Commit

Permalink
improve test suite titles
Browse files Browse the repository at this point in the history
  • Loading branch information
satorg committed Oct 21, 2022
1 parent b4876aa commit bcf9579
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ import org.typelevel.scalacoptions.testkit._
import org.scalacheck.Prop

class ScalaVersionSuite extends munit.ScalaCheckSuite {
property("ScalaVersion#from/unsafeFrom can create a known version") {
property("ScalaVersion.from/unsafeFrom can create a known version") {
Prop.forAll(knownScalaVersionGen) { case expected @ ScalaVersion(major, minor, patch) =>
assertEquals(ScalaVersion.from(major, minor, patch), Some(expected))
assertEquals(ScalaVersion.unsafeFrom(major, minor, patch), expected)
}
}
property("ScalaVersion#from/unsafeFrom are consistent with each other") {
property("ScalaVersion.from/unsafeFrom are consistent with each other") {
Prop.forAll { (major: Long, minor: Long, patch: Long) =>
ScalaVersion.from(major, minor, patch) match {
case Some(expected) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import org.scalacheck.Gen
import org.scalacheck.Prop

class ParserSuite extends munit.ScalaCheckSuite {
property("Parser#parseGenericVersion should succeed for valid version strings") {
property("Parser.parseGenericVersion should succeed for valid version strings") {
val ulongGen: Gen[Long] = Gen.chooseNum[Long](0L, Long.MaxValue)
Prop.forAll(ulongGen, ulongGen, ulongGen) { (major, minor, patch) =>
assertEquals(
Expand All @@ -30,7 +30,7 @@ class ParserSuite extends munit.ScalaCheckSuite {
)
}
}
property("Parser#parseGenericVersion should None for invalid version strings") {
property("Parser.parseGenericVersion should None for invalid version strings") {
val gen =
Arbitrary
.arbitrary[String]
Expand Down

0 comments on commit bcf9579

Please sign in to comment.