Skip to content

Commit

Permalink
Improved completeness of Trie testing, added sonatype release resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mie6 committed Jan 30, 2023
1 parent 7daa23a commit 5e07469
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ lazy val parsley = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.settings(
name := projectName,

resolvers ++= Opts.resolver.sonatypeOssReleases, // Will speed up MiMA during fast back-to-back releases
libraryDependencies ++= Seq(
"org.scalatest" %%% "scalatest" % "3.2.15" % Test,
"org.scalatestplus" %%% "scalacheck-1-17" % "3.2.15.0" % Test,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import org.scalatestplus.scalacheck.ScalaCheckPropertyChecks

class TrieSpec extends AnyPropSpec with ScalaCheckPropertyChecks with should.Matchers {
property("a Trie constructed from a set should contain all of its elements") {
forAll { (set: Set[String]) =>
forAll { (set: List[String]) =>
val t = Trie(set)
set.forall(t.contains)
for (key <- set) {
Expand All @@ -16,7 +16,7 @@ class TrieSpec extends AnyPropSpec with ScalaCheckPropertyChecks with should.Mat
}

property("a Trie constructed from a set should not contain extra keys") {
forAll { (set: Set[String]) =>
forAll { (set: List[String]) =>
val t = Trie(set)
forAll { (str: String) =>
whenever(!set.contains(str)) {
Expand Down

0 comments on commit 5e07469

Please sign in to comment.