feat: introduction of logger to eliminate printstreams

This commit is contained in:
Jonny
2025-03-01 01:19:50 +00:00
parent d214723f35
commit 667fbf4949
4 changed files with 43 additions and 26 deletions

View File

@@ -7,7 +7,6 @@ import org.scalatest.freespec.AsyncFreeSpec
import cats.effect.testing.scalatest.AsyncIOSpec
import java.io.File
import sys.process._
import java.io.PrintStream
import scala.io.Source
import cats.effect.IO
import wacc.{compile as compileWacc}
@@ -30,7 +29,6 @@ class ParallelExamplesSpec extends AsyncFreeSpec with AsyncIOSpec with BeforeAnd
forEvery(files) { (filename, expectedResult) =>
val baseFilename = filename.stripSuffix(".wacc")
given stdout: PrintStream = PrintStream(File(baseFilename + ".out"))
s"$filename" - {
"should be compiled with correct result" in {