refactor: compile function split up into smaller functions

This commit is contained in:
Jonny
2025-03-02 03:48:37 +00:00
parent abb43b560d
commit f66f1ab3ac
3 changed files with 63 additions and 25 deletions

View File

@@ -6,6 +6,7 @@ import org.scalatest.matchers.should.Matchers._
import org.scalatest.freespec.AsyncFreeSpec
import cats.effect.testing.scalatest.AsyncIOSpec
import java.io.File
import java.nio.file.Path
import sys.process._
import scala.io.Source
import cats.effect.IO
@@ -32,7 +33,7 @@ class ParallelExamplesSpec extends AsyncFreeSpec with AsyncIOSpec with BeforeAnd
s"$filename" - {
"should be compiled with correct result" in {
compileWacc(filename, outputDir = None, log = false).map { result =>
compileWacc(Path.of(filename), outputDir = None, log = false).map { result =>
expectedResult should contain(result)
}
}