Skip to content

Commit

Permalink
Make laws testing run on all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
satabin committed Apr 12, 2022
1 parent 532e787 commit 092cde8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ val commonSettings = List(
"com.disneystreaming" %%% "weaver-framework" % weaverVersion % Test,
"com.disneystreaming" %% "weaver-scalacheck" % weaverVersion % Test,
"com.disneystreaming" %%% "weaver-discipline" % weaverVersion % Test,
"org.typelevel" %%% "cats-laws" % "2.0.0" % Test,
"org.typelevel" %%% "cats-laws" % "2.7.0" % Test,
"com.eed3si9n.expecty" %%% "expecty" % "0.15.4" % Test,
"org.portable-scala" %%% "portable-scala-reflect" % "1.1.1" cross CrossVersion.for3Use2_13
) ++ PartialFunction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ object RangeSet {
if (low < range.lower) {
// the new range lower bound is strictly smaller than the next lower bound
// fill in the gap
builder.addOne(Range(low, T.cyclePrevious(range.lower)))
builder += Range(low, T.cyclePrevious(range.lower))
if (range.upper < T.maxBound)
loop(idx + 1, T.cycleNext(range.upper), builder)
else
Expand All @@ -224,7 +224,7 @@ object RangeSet {
loop(idx + 1, T.cycleNext(range.upper), builder)
}
case None =>
builder.addOne(Range(low, T.maxBound)).result()
(builder += Range(low, T.maxBound)).result()
}
NonEmptyVector.fromVectorUnsafe(loop(0, T.minBound, new VectorBuilder))
}
Expand Down

0 comments on commit 092cde8

Please sign in to comment.