Safe Haskell | None |
---|---|
Language | Haskell2010 |
FreeC.Pass.EtaConversionPassTests
Description
This module contains tests for FreeC.Pass.EtaConversionPass.
Synopsis
- shouldEtaConvertTopLevel :: String -> String -> Converter Expectation
- shouldEtaConvert :: String -> String -> Converter Expectation
- testEtaConversionPass :: Spec
- testEtaConvertFuncDecl :: Spec
- testEtaConvertExpr :: Spec
Documentation
shouldEtaConvertTopLevel :: String -> String -> Converter Expectation Source #
Parses the given function declaration, applies the eta conversion
pass and sets the expectation that the resulting function declaration
is similar
to the expected output.
shouldEtaConvert :: String -> String -> Converter Expectation Source #
Parses the given expressions, applies the eta conversion
pass and sets the expectation that the resulting expression
is similar
to the expected output.
testEtaConversionPass :: Spec Source #
Test group for etaConversionPass
tests.
testEtaConvertFuncDecl :: Spec Source #
Test group for etaConvertFuncDecl
tests.
testEtaConvertExpr :: Spec Source #
Test group for etaConvertExpr
tests.