Packages

The Phi Programming Language

Current section

Files

Jump to
phi tests Test Data Semigroup.phi
Raw

tests/Test/Data/Semigroup.phi

module Test.Data.Semigroup where
import Test.QuickCheck (TestGroup(..), TestResult, quickCheck)
import Prelude
propList :: [Int]->[Int]->[Int]->Bool
propList xs ys zs = ((xs <> ys) <> zs) == (xs <> (ys <> zs))
propUnit :: Bool
propUnit = ((unit <> unit) <> unit) == (unit <> (unit <> unit))
test :: TestGroup (Integer -> IO TestResult)
test = Exe [
quickCheck "List" propList
,quickCheck "Unit" propUnit
]