1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-14 17:32:00 +03:00
juvix/test/Core/Transformation/TopEtaExpand.hs

22 lines
510 B
Haskell

module Core.Transformation.TopEtaExpand (allTests) where
import Base
import Core.Eval.Positive qualified as Eval
import Core.Transformation.Base
import Juvix.Compiler.Core.Transformation
allTests :: TestTree
allTests = testGroup "Top eta expand" (map liftTest Eval.tests)
pipe :: [TransformationId]
pipe = [TopEtaExpand]
liftTest :: Eval.PosTest -> TestTree
liftTest _testEval =
fromTest
Test
{ _testTransformations = pipe,
_testAssertion = const (return ()),
_testEval
}