1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 00:33:59 +03:00
semantic/test/TermSpec.hs

18 lines
439 B
Haskell
Raw Normal View History

{-# LANGUAGE DataKinds #-}
module TermSpec where
import Category
import Data.Functor.Listable
import Data.Record
2017-09-27 19:37:37 +03:00
import Data.Term
import Syntax
import Test.Hspec (Spec, describe, parallel)
import Test.Hspec.Expectations.Pretty
import Test.Hspec.LeanCheck
spec :: Spec
spec = parallel $ do
describe "Term" $ do
prop "equality is reflexive" $
\ a -> unListableF a `shouldBe` (unListableF a :: Term Syntax (Record '[Category]))