mirror of
https://github.com/github/semantic.git
synced 2024-12-19 04:41:47 +03:00
18 lines
445 B
Haskell
18 lines
445 B
Haskell
{-# LANGUAGE DataKinds #-}
|
|
module Data.Term.Spec where
|
|
|
|
import Category
|
|
import Data.Functor.Listable
|
|
import Data.Record
|
|
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]))
|