freec-unit-tests

Safe HaskellNone
LanguageHaskell2010

FreeC.Pass.EtaConversionPassTests

Description

This module contains tests for FreeC.Pass.EtaConversionPass.

Synopsis

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.