diff options
Diffstat (limited to 'scalalib')
-rw-r--r-- | scalalib/src/test/scala/mill/scalalib/HelloWorldTests.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scalalib/src/test/scala/mill/scalalib/HelloWorldTests.scala b/scalalib/src/test/scala/mill/scalalib/HelloWorldTests.scala index 0f4b1223..eb883469 100644 --- a/scalalib/src/test/scala/mill/scalalib/HelloWorldTests.scala +++ b/scalalib/src/test/scala/mill/scalalib/HelloWorldTests.scala @@ -170,7 +170,7 @@ object HelloWorldTests extends TestSuite { 'failOnError - { write.append(mainObject, "val x: ") - val Left(Result.Exception(err)) = helloWorldEvaluator(HelloWorld.compile) + val Left(Result.Exception(err, _)) = helloWorldEvaluator(HelloWorld.compile) assert(err.isInstanceOf[CompileFailed]) @@ -190,7 +190,7 @@ object HelloWorldTests extends TestSuite { } 'passScalacOptions - { // compilation fails because of "-Xfatal-warnings" flag - val Left(Result.Exception(err)) = helloWorldFatalEvaluator(HelloWorldFatalWarnings.compile) + val Left(Result.Exception(err, _)) = helloWorldFatalEvaluator(HelloWorldFatalWarnings.compile) assert(err.isInstanceOf[CompileFailed]) } @@ -232,7 +232,7 @@ object HelloWorldTests extends TestSuite { 'notRunInvalidMainObject - { - val Left(Result.Exception(err)) = helloWorldEvaluator(HelloWorld.runMain("Invalid")) + val Left(Result.Exception(err, _)) = helloWorldEvaluator(HelloWorld.runMain("Invalid")) assert( err.isInstanceOf[InteractiveShelloutException] @@ -241,7 +241,7 @@ object HelloWorldTests extends TestSuite { 'notRunWhenComplileFailed - { write.append(mainObject, "val x: ") - val Left(Result.Exception(err)) = helloWorldEvaluator(HelloWorld.runMain("Main")) + val Left(Result.Exception(err, _)) = helloWorldEvaluator(HelloWorld.runMain("Main")) assert( err.isInstanceOf[CompileFailed] @@ -264,7 +264,7 @@ object HelloWorldTests extends TestSuite { ) } 'notRunWithoutMainClass - { - val Left(Result.Exception(err)) = helloWorldEvaluator(HelloWorld.run()) + val Left(Result.Exception(err, _)) = helloWorldEvaluator(HelloWorld.run()) assert( err.isInstanceOf[RuntimeException] |