refactor: compile function split up into smaller functions
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user