Skip to content

Commit ebcffd2

Browse files
committed
fix and update resources
1 parent 3edd1ce commit ebcffd2

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

CompareApp.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
// receive 2 file paths as input and compare the files, exit with status code 0 if there was no breaking change, 1 otherwise
2+
//> using scala "2.13.16"
3+
//> using dep "org.scalameta::scalameta:4.13.9"
4+
//> using test.dep "org.scalameta::munit::0.7.29"
5+
//> using resourceDir "./resources"
6+
//> using dep "com.lihaoyi::upickle::4.2.1"
27
import java.nio.file.{Paths, Files}
38
import java.nio.charset.StandardCharsets
49
import BreakingChangeDetector.CompareSummary._

project.scala

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/FileParser.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ object FileParser {
4545
}
4646
}
4747

48-
def parse(content: String, dialect: Dialect = dialects.Scala213Source3): ScalaFile = {
48+
def parse(
49+
content: String,
50+
dialect: Dialect = dialects.Scala213Source3
51+
): ScalaFile = {
4952
val input = Input.String(content)
5053
val exampleTree: Source = dialect(input).parse[Source].get
5154

test/BreakingChangeDetector.test.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ class BreakingChangeDetectorTest extends munit.FunSuite {
252252
compared.find(_.isBreakingChange).nonEmpty
253253
)
254254
}
255-
255+
256256
runWithFiles("V10.scala_test.prev", "V10.scala_test")
257257
runWithFiles("V10.scala_test", "V10.scala_test.prev")
258258
}

0 commit comments

Comments
 (0)