Skip to content

Commit

Permalink
Update to Scala 3
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirlogachev committed Jul 13, 2024
1 parent 3f5e6e1 commit 076ca1b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version = "3.8.2"
runner.dialect = scala213
runner.dialect = scala3

preset=default
align.preset = more
Expand Down
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
val scala2Version = "2.13.14"
val scala3Version = "3.4.2"

lazy val root = project
.in(file("."))
.settings(
name := "transitive-closure",
version := "0.1.0-SNAPSHOT",
scalaVersion := scala2Version,
scalaVersion := scala3Version,
run / fork := true, // Makes exit codes work as expected
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % "2.12.0",
Expand Down
6 changes: 5 additions & 1 deletion src/test/scala/TransitiveClosureSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ object TransitiveClosureTestingTools {

def combineAssertions(assertions: Seq[Assertion]): Assertion = {
val cp = new Checkpoint
assertions.foreach(x => cp(x: Unit))
assertions.foreach(x =>
cp {
val _ = x;
}
)
cp.reportAll()
Succeeded
}
Expand Down

0 comments on commit 076ca1b

Please sign in to comment.