mirror of
https://github.com/anoma/juvix.git
synced 2024-12-14 08:27:03 +03:00
d576111241
* Closes #2035 * Depends on #2086 * Depends on #2096 * Adds end-to-end tests for the Juvix-to-VampIR compilation pipeline. --------- Co-authored-by: Jonathan Cubides <jonathan.cubides@uib.no>
20 lines
545 B
Haskell
20 lines
545 B
Haskell
module Core.VampIR.Positive where
|
|
|
|
import Base
|
|
import Core.Normalize.Positive (PosTest (..))
|
|
import Core.Normalize.Positive qualified as Normalize
|
|
import Core.VampIR.Base
|
|
import Juvix.Compiler.Core.Data.TransformationId
|
|
|
|
fromTest :: PosTest -> TestTree
|
|
fromTest = mkTest . toTestDescr
|
|
|
|
toTestDescr :: PosTest -> TestDescr
|
|
toTestDescr = Normalize.toTestDescr' (const (coreVampIRAssertion toVampIRTransformations))
|
|
|
|
allTests :: TestTree
|
|
allTests =
|
|
testGroup
|
|
"JuvixCore VampIR positive tests"
|
|
(map (mkTest . toTestDescr) Normalize.tests)
|