File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
compiler/test/dotty/tools/dotc/semanticdb Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import org.junit.experimental.categories.Category
2222import dotty .BootstrappedOnlyTests
2323import dotty .tools .dotc .Main
2424import dotty .tools .dotc .semanticdb .Scala3 .given
25- import dotty .tools .dotc .util .SourceFile
25+ import dotty .tools .dotc .util .{ SourceFile , DiffUtil }
2626
2727@ main def updateExpect =
2828 SemanticdbTests ().runExpectTest(updateExpectFiles = true )
@@ -77,6 +77,7 @@ class SemanticdbTests:
7777 val expectName = expectPath.getFileName
7878 val relExpect = rootSrc.relativize(expectPath)
7979 if expected.trim != obtained.trim then
80+ println(DiffUtil .mkColoredLineDiff(obtained.trim().linesIterator.toSeq, expected.trim().linesIterator.toSeq))
8081 Files .write(expectPath.resolveSibling(" " + expectName + " .out" ), obtained.getBytes(StandardCharsets .UTF_8 ))
8182 errors += expectPath
8283 for source <- inputFiles().sorted do
You can’t perform that action at this time.
0 commit comments