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