File tree 1 file changed +2
-1
lines changed
compiler/test/dotty/tools/dotc/semanticdb
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
22
22
import dotty .BootstrappedOnlyTests
23
23
import dotty .tools .dotc .Main
24
24
import dotty .tools .dotc .semanticdb .Scala3 .given
25
- import dotty .tools .dotc .util .SourceFile
25
+ import dotty .tools .dotc .util .{ SourceFile , DiffUtil }
26
26
27
27
@ main def updateExpect =
28
28
SemanticdbTests ().runExpectTest(updateExpectFiles = true )
@@ -77,6 +77,7 @@ class SemanticdbTests:
77
77
val expectName = expectPath.getFileName
78
78
val relExpect = rootSrc.relativize(expectPath)
79
79
if expected.trim != obtained.trim then
80
+ println(DiffUtil .mkColoredLineDiff(obtained.trim().linesIterator.toSeq, expected.trim().linesIterator.toSeq))
80
81
Files .write(expectPath.resolveSibling(" " + expectName + " .out" ), obtained.getBytes(StandardCharsets .UTF_8 ))
81
82
errors += expectPath
82
83
for source <- inputFiles().sorted do
You can’t perform that action at this time.
0 commit comments