packages feed

wide-word-0.2.0.0: test/test256.hs

{-# LANGUAGE ImportQualifiedPost #-}
import Control.Monad (unless)

import System.Exit (exitFailure)

import Test.Data.WideWord.Word256 qualified
import Test.Data.WideWord.Int256 qualified

main :: IO ()
main = runTests
  [ Test.Data.WideWord.Word256.tests
  , Test.Data.WideWord.Int256.tests
  ]

runTests :: [IO Bool] -> IO ()
runTests tests = do
  result <- and <$> sequence tests
  unless result
    exitFailure