diff --git a/src/main/wacc/Main.scala b/src/main/wacc/Main.scala index e1f07e1..fc9fb45 100644 --- a/src/main/wacc/Main.scala +++ b/src/main/wacc/Main.scala @@ -82,9 +82,11 @@ def compile(filename: String, outFile: Option[File] = None)(using def main(args: Array[String]): Unit = OParser.parse(cliParser, args, CliConfig()) match { case Some(config) => - System.exit(compile( - config.file.getAbsolutePath, - outFile = Some(File(".", config.file.getName.stripSuffix(".wacc") + ".s")) - )) + System.exit( + compile( + config.file.getAbsolutePath, + outFile = Some(File(".", config.file.getName.stripSuffix(".wacc") + ".s")) + ) + ) case None => } diff --git a/src/test/wacc/examples.scala b/src/test/wacc/examples.scala index f0e1a48..449e5ac 100644 --- a/src/test/wacc/examples.scala +++ b/src/test/wacc/examples.scala @@ -81,7 +81,7 @@ class ParallelExamplesSpec extends AnyFlatSpec with BeforeAndAfterAll { .replaceAll("0x[0-9a-f]+", "#addrs#") .replaceAll("fatal error:.*", "#runtime_error#\n\u0000") .takeWhile(_ != '\u0000') - == expectedOutput + == expectedOutput ) } }