module Main (main) where import Prelude import Data.Proxy import System.IO qualified as SIO import Test.Tasty import Test.Tasty.Options import Test.Tasty.Runners import EqEpsilon import TestGatherSimplified qualified main :: IO () main = do -- Limit interleaving of characters in parallel tests. SIO.hSetBuffering SIO.stdout SIO.LineBuffering SIO.hSetBuffering SIO.stderr SIO.LineBuffering opts <- parseOptions (ingredients : defaultIngredients) tests setEpsilonEq (lookupOption opts :: EqEpsilon) defaultMainWithIngredients (ingredients : defaultIngredients) tests where ingredients = includingOptions [Option (Proxy :: Proxy EqEpsilon)] tests :: TestTree tests = testGroup "Minimal test that doesn't require any dataset" TestGatherSimplified.testTrees