You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: tests/unit/src/test/scala/tests/imports/FileSuite.scala
+6-5
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@ package tests.imports
3
3
importtests.markdown.BaseMarkdownSuite
4
4
importtests.cli.BaseCliSuite
5
5
importscala.meta.io.RelativePath
6
+
importjava.io.File
6
7
7
8
classFileSuiteextendsBaseCliSuite {
8
9
@@ -124,7 +125,7 @@ class FileSuite extends BaseCliSuite {
124
125
includeOutputPath = includeOutputPath,
125
126
onStdout = { stdout =>
126
127
assertNoDiff(
127
-
stdout,
128
+
stdout.replace('\\', '/'),
128
129
"""|info: Compiling 3 files to <output>
129
130
|error: <input>/readme.md:2:14: illegal cyclic dependency. To fix this problem, refactor the code so that no transitive $file imports end up depending on the original file.
130
131
| -- root --> <input>/readme.md:1
@@ -158,7 +159,7 @@ class FileSuite extends BaseCliSuite {
158
159
includeOutputPath = includeOutputPath,
159
160
onStdout = { stdout =>
160
161
assertNoDiff(
161
-
stdout,
162
+
stdout.replace('\\', '/'),
162
163
"""|info: Compiling 3 files to <output>
163
164
|error: <input>/hello1.sc:1:23: type mismatch;
164
165
| found : Int(42)
@@ -260,7 +261,7 @@ class FileSuite extends BaseCliSuite {
260
261
includeOutputPath = includeOutputPath,
261
262
onStdout = { stdout =>
262
263
assertNoDiff(
263
-
stdout,
264
+
stdout.replace('\\', '/'),
264
265
"""|info: Compiling 2 files to <output>
265
266
|error: <input>/readme.md:2:16: unimports are not supported for $file imports. To fix this problem, remove the unimported symbol.
266
267
|import $file.{ hello0 => _ }
@@ -286,7 +287,7 @@ class FileSuite extends BaseCliSuite {
286
287
includeOutputPath = includeOutputPath,
287
288
onStdout = { stdout =>
288
289
assertNoDiff(
289
-
stdout,
290
+
stdout.replace('\\', '/'),
290
291
"""|info: Compiling 2 files to <output>
291
292
|error: <input>/readme.md:2:14: wildcards are not supported for $file imports. To fix this problem, explicitly import files using the `import $file.FILENAME` syntax.
292
293
|import $file._
@@ -320,7 +321,7 @@ class FileSuite extends BaseCliSuite {
320
321
// import qualifier. This works because we employ token edit distance to
321
322
// map positions from the instrumented source to the original source.
322
323
assertNoDiff(
323
-
stdout,
324
+
stdout.replace('\\', '/'),
324
325
"""|info: Compiling 3 files to <output>
325
326
|error: <input>/inner/hello1.sc:2:11: value number is not a member of object $file.hello0
0 commit comments