Skip to content

Commit

Permalink
Reformat with scalafmt 3.8.3
Browse files Browse the repository at this point in the history
Executed command: scalafmt --non-interactive
  • Loading branch information
typelevel-steward[bot] committed Oct 10, 2024
1 parent a8fb614 commit 24e4581
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 16 deletions.
13 changes: 8 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ lazy val core = crossProject(JVMPlatform, JSPlatform, NativePlatform)
"co.fs2" %%% "fs2-core" % Version.fs2,
"org.typelevel" %%% "cats-effect" % Version.catsEffect,
// https://github.com/portable-scala/portable-scala-reflect/issues/23
"org.portable-scala" %%% "portable-scala-reflect" % Version.portableReflect cross CrossVersion.for3Use2_13,
"org.portable-scala" %%% "portable-scala-reflect" % Version
.portableReflect cross CrossVersion.for3Use2_13,
"org.typelevel" %% "scalac-compat-annotation" % Version.scalacCompatAnnotation,
"org.scalameta" %%% "munit-diff" % Version.munitDiff,
if (scalaVersion.value.startsWith("3."))
Expand All @@ -87,8 +88,9 @@ lazy val core = crossProject(JVMPlatform, JSPlatform, NativePlatform)
lazy val coreJVM = core.jvm
.settings(
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-stubs" % Version.scalajsStubs % "provided" cross CrossVersion.for3Use2_13,
"junit" % "junit" % Version.junit % Optional
"org.scala-js" %%% "scalajs-stubs" % Version
.scalajsStubs % "provided" cross CrossVersion.for3Use2_13,
"junit" % "junit" % Version.junit % Optional
)
)

Expand All @@ -105,8 +107,9 @@ lazy val framework = crossProject(JVMPlatform, JSPlatform, NativePlatform)
lazy val frameworkJVM = framework.jvm
.settings(
libraryDependencies ++= Seq(
"org.scala-sbt" % "test-interface" % Version.testInterface,
"org.scala-js" %%% "scalajs-stubs" % Version.scalajsStubs % "provided" cross CrossVersion.for3Use2_13
"org.scala-sbt" % "test-interface" % Version.testInterface,
"org.scala-js" %%% "scalajs-stubs" % Version
.scalajsStubs % "provided" cross CrossVersion.for3Use2_13
)
)

Expand Down
14 changes: 6 additions & 8 deletions modules/core/shared/src/main/scala-3/weaver/ExpectMacro.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ private[weaver] trait ExpectMacro {
* Use the [[Expectations.Helpers.clue]] function to investigate any failures.
*/
inline def apply(assertion: Clues ?=> Boolean): Expectations =
${ ExpectMacro.applyImpl('assertion) }
${ ExpectMacro.applyImpl('assertion) }

/**
* Asserts that a boolean value is true and displays a failure message if
* not.
*
* Use the [[Expectations.Helpers.clue]] function to investigate any
* failures.
*/
/**
* Asserts that a boolean value is true and displays a failure message if not.
*
* Use the [[Expectations.Helpers.clue]] function to investigate any failures.
*/
inline def apply(
assertion: Clues ?=> Boolean,
message: => String): Expectations =
Expand Down
3 changes: 2 additions & 1 deletion modules/core/shared/src/main/scala/weaver/Formatter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ object Formatter {
val newLine = '\n'
builder.append(formatResultStatus(name, result, outcome.duration))

if ((mode == Verbose && outcome.status.isFailed) || (mode == Summary && !outcome.status.isFailed))
if ((mode == Verbose && outcome.status
.isFailed) || (mode == Summary && !outcome.status.isFailed))
result.formatted.foreach { resultInfo =>
builder.append(EOL)
builder.append(resultInfo)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ object DogFoodTests extends IOSuite {

val expected =
s"""
|- erroring with a long message: ${Meta.ErroringWithLongPayload.smiles} 0ms
|- erroring with a long message: ${Meta.ErroringWithLongPayload
.smiles} 0ms
| Meta$$CustomException: surfaced error
|
| DogFoodTests.scala:15 my.package.MyClass#MyMethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ trait Checkers {
s"""Property test failed on try $ith with seed $seed and input $input.
|You can reproduce this by adding the following override to your suite:
|
|override def checkConfig = super.checkConfig.withInitialSeed($seed.toOption)""".stripMargin)
|override def checkConfig = super.checkConfig.withInitialSeed($seed.toOption)"""
.stripMargin)
.and(exp)
copy(failure = Some(failure))
} else this
Expand Down

0 comments on commit 24e4581

Please sign in to comment.