1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 06:41:45 +03:00
semantic/test/Data/Diff/Spec.hs

14 lines
338 B
Haskell
Raw Normal View History

{-# LANGUAGE DataKinds #-}
2017-11-27 21:59:44 +03:00
module Data.Diff.Spec where
2016-06-27 20:12:06 +03:00
2017-09-27 19:41:41 +03:00
import Data.Diff
import Data.Functor.Listable (ListableSyntax)
import Data.Record
2016-06-27 20:12:06 +03:00
import Test.Hspec
import Test.Hspec.LeanCheck
2016-06-27 20:12:06 +03:00
spec :: Spec
spec = parallel $ do
2016-06-27 20:18:20 +03:00
prop "equality is reflexive" $
\ diff -> diff `shouldBe` (diff :: Diff ListableSyntax (Record '[]) (Record '[]))