@@ -2329,7 +2329,7 @@ abstract class RunTestDefinitions(val scalaVersionOpt: Option[String])
2329
2329
preCompileOutputDir.toString,
2330
2330
extraOptions
2331
2331
).call(cwd = root / preCompileDir, stderr = os.Pipe )
2332
- expect(! compileRes.err.trim.contains(" Warning: Flag -d set repeatedly" ))
2332
+ expect(! compileRes.err.trim() .contains(" Warning: Flag -d set repeatedly" ))
2333
2333
2334
2334
// next, run while relying on the pre-compiled class, specifying the path with -O -classpath
2335
2335
val runRes = os.proc(
@@ -2342,7 +2342,7 @@ abstract class RunTestDefinitions(val scalaVersionOpt: Option[String])
2342
2342
(os.rel / os.up / preCompileDir / preCompileOutputDir).toString,
2343
2343
extraOptions
2344
2344
).call(cwd = root / runDir, stderr = os.Pipe )
2345
- expect(! runRes.err.trim.contains(" Warning: Flag -classpath set repeatedly" ))
2345
+ expect(! runRes.err.trim() .contains(" Warning: Flag -classpath set repeatedly" ))
2346
2346
expect(runRes.out.trim() == expectedOutput)
2347
2347
}
2348
2348
}
@@ -2400,7 +2400,7 @@ abstract class RunTestDefinitions(val scalaVersionOpt: Option[String])
2400
2400
jarPath,
2401
2401
extraOptions
2402
2402
).call(cwd = root)
2403
- expect(runRes.out.trim == expectedOutput)
2403
+ expect(runRes.out.trim() == expectedOutput)
2404
2404
}
2405
2405
}
2406
2406
@@ -2430,7 +2430,7 @@ abstract class RunTestDefinitions(val scalaVersionOpt: Option[String])
2430
2430
jarParentDirectory,
2431
2431
extraOptions
2432
2432
).call(cwd = root)
2433
- expect(runRes.out.trim == expectedOutput)
2433
+ expect(runRes.out.trim() == expectedOutput)
2434
2434
}
2435
2435
}
2436
2436
@@ -2482,7 +2482,7 @@ abstract class RunTestDefinitions(val scalaVersionOpt: Option[String])
2482
2482
val res =
2483
2483
os.proc(TestUtil .cli, " run" , " ." , " -S" , scala212VersionString, TestUtil .extraOptions)
2484
2484
.call(cwd = root)
2485
- expect(res.out.trim == scala212VersionString)
2485
+ expect(res.out.trim() == scala212VersionString)
2486
2486
}
2487
2487
}
2488
2488
}
@@ -2529,12 +2529,12 @@ abstract class RunTestDefinitions(val scalaVersionOpt: Option[String])
2529
2529
.fromRoot { root =>
2530
2530
val res = os.proc(TestUtil .cli, " ." , " --scalac-verbose" , extraOptions)
2531
2531
.call(cwd = root, stderr = os.Pipe )
2532
- val errLines = res.err.trim.lines.toList.asScala
2532
+ val errLines = res.err.trim() .lines.toList.asScala
2533
2533
// there should be a lot of logs, but different stuff is logged depending on the Scala version
2534
2534
expect(errLines.length > 100 )
2535
2535
expect(errLines.exists(_.startsWith(" [loaded package loader scala" )))
2536
2536
expect(errLines.exists(_.contains(s " $mainClass.scala " )))
2537
- expect(res.out.trim == expectedOutput)
2537
+ expect(res.out.trim() == expectedOutput)
2538
2538
}
2539
2539
}
2540
2540
@@ -2552,7 +2552,7 @@ abstract class RunTestDefinitions(val scalaVersionOpt: Option[String])
2552
2552
" cp1252" ,
2553
2553
extraOptions
2554
2554
).call(cwd = root)
2555
- expect(res.out.trim == " €" )
2555
+ expect(res.out.trim() == " €" )
2556
2556
}
2557
2557
}
2558
2558
}
0 commit comments