mirror of
https://github.com/anoma/juvix.git
synced 2024-12-12 14:28:08 +03:00
22 lines
591 B
Haskell
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
|
|
}
|