File tree 1 file changed +4
-4
lines changed
compiler/test/dotty/tools/dotc/core/tasty
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -42,17 +42,17 @@ class PathPicklingTest {
42
42
assertFalse(" Compilation failed." , rep.hasErrors)
43
43
}
44
44
45
- def showTasty (path : String ) =
46
- val bytes = Files .readAllBytes(Paths .get(path ))
45
+ def showTasty (fileName : String ) =
46
+ val bytes = Files .readAllBytes(out.toPath.resolve(fileName ))
47
47
TastyPrinter .showContents(bytes, noColor = true )
48
48
49
- val libTasty = showTasty(s " $out / lib.tasty" )
49
+ val libTasty = showTasty(" lib.tasty" )
50
50
assertTrue(libTasty.contains(" : i10430/lib.scala" ))
51
51
assertTrue(libTasty.contains(" [i10430/lib.scala]" ))
52
52
assertFalse(libTasty.contains(" : i10430\\ lib.scala" ))
53
53
assertFalse(libTasty.contains(" [i10430\\ lib.scala]" ))
54
54
55
- val appTasty = showTasty(s " $out / app.tasty" )
55
+ val appTasty = showTasty(" app.tasty" )
56
56
assertTrue(appTasty.contains(" : i10430/app.scala" ))
57
57
assertTrue(appTasty.contains(" [i10430/app.scala]" ))
58
58
assertFalse(appTasty.contains(" : i10430\\ app.scala" ))
You can’t perform that action at this time.
0 commit comments