2017-01-08 07:21:22 +03:00
|
|
|
{-# LANGUAGE DataKinds #-}
|
2015-12-17 21:08:47 +03:00
|
|
|
module TermSpec where
|
|
|
|
|
2017-01-08 07:21:22 +03:00
|
|
|
import Category
|
|
|
|
import Data.Functor.Listable
|
|
|
|
import Data.String (String)
|
2016-06-01 16:16:47 +03:00
|
|
|
import Prologue
|
2017-01-08 07:21:22 +03:00
|
|
|
import Term
|
2016-09-15 00:45:23 +03:00
|
|
|
import Test.Hspec (Spec, describe, parallel)
|
|
|
|
import Test.Hspec.Expectations.Pretty
|
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-01-08 07:21:22 +03:00
|
|
|
\ a -> unListableF a `shouldBe` (unListableF a :: SyntaxTerm String '[Category])
|