2017-01-08 07:21:22 +03:00
|
|
|
{-# LANGUAGE DataKinds #-}
|
2018-12-01 03:23:29 +03:00
|
|
|
module Data.Term.Spec (spec) where
|
2015-12-17 21:08:47 +03:00
|
|
|
|
2017-01-08 07:21:22 +03:00
|
|
|
import Data.Functor.Listable
|
2017-09-27 19:37:37 +03:00
|
|
|
import Data.Term
|
2016-09-15 00:45:23 +03:00
|
|
|
import Test.Hspec (Spec, describe, parallel)
|
2019-06-12 18:30:20 +03:00
|
|
|
import Test.Hspec.Expectations
|
2017-01-08 07:21:22 +03:00
|
|
|
import Test.Hspec.LeanCheck
|
2015-12-17 21:08:47 +03:00
|
|
|
|
|
|
|
spec :: Spec
|
2016-01-05 18:38:51 +03:00
|
|
|
spec = parallel $ do
|
2015-12-17 21:08:47 +03:00
|
|
|
describe "Term" $ do
|
|
|
|
prop "equality is reflexive" $
|
2017-10-10 20:18:11 +03:00
|
|
|
\ a -> a `shouldBe` (a :: Term ListableSyntax ())
|