1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-12 14:28:08 +03:00
juvix/test/Core/Transformation/Pipeline.hs
2024-06-07 18:40:42 +02:00

22 lines
591 B
Haskell

module Core.Transformation.Pipeline (allTests) where
import Base
import Core.Eval.Positive qualified as Eval
import Core.Transformation.Base
import Juvix.Compiler.Core.Transformation
allTests :: TestTree
allTests = testGroup "Transformation pipeline (to Stripped)" (map liftTest Eval.compilableTests)
pipe :: [TransformationId]
pipe = toStoredTransformations ++ toStrippedTransformations IdentityTrans
liftTest :: Eval.PosTest -> TestTree
liftTest _testEval =
fromTest
Test
{ _testTransformations = pipe,
_testAssertion = const (return ()),
_testEval
}