dhall-haskell/dhall/tests/Tests.hs
Gabriel Gonzalez 203a22818e
Fix bug when linting multi-let expressions (#703)
`dhall lint` was incorrectly deleting `let` bindings that are being used
due to not checking other `let` bindings within the same multi-`let`
expression for free variable occurrences.

This change fixes that and adds the first regression test for `dhall
lint`
2018-11-24 08:32:04 -08:00

37 lines
878 B
Haskell

module Main where
import Lint (lintTests)
import Normalization (normalizationTests)
import Parser (parserTests)
import Regression (regressionTests)
import QuickCheck (quickcheckTests)
import Tutorial (tutorialTests)
import TypeCheck (typecheckTests)
import Format (formatTests)
import Import (importTests)
import System.FilePath ((</>))
import Test.Tasty
import qualified System.Directory
import qualified System.Environment
allTests :: TestTree
allTests =
testGroup "Dhall Tests"
[ normalizationTests
, parserTests
, regressionTests
, tutorialTests
, formatTests
, typecheckTests
, importTests
, quickcheckTests
, lintTests
]
main :: IO ()
main = do
pwd <- System.Directory.getCurrentDirectory
System.Environment.setEnv "XDG_CACHE_HOME" (pwd </> ".cache")
defaultMain allTests