summaryrefslogtreecommitdiff
path: root/tests/Data/Graph/Dynamic/Internal/Splay/Tests.hs
blob: 767f9e2aad547e4de190ef12ea2c5b5de43e62a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{-# LANGUAGE TemplateHaskell #-}
module Data.Graph.Dynamic.Internal.Splay.Tests
    ( tests
    ) where

import qualified Data.Graph.Dynamic.Internal.Splay      as Splay
import qualified Data.Graph.Dynamic.Internal.Tree.Tests as Class
import           Data.Monoid                            (Sum)
import           Data.Proxy                             (Proxy (..))
import           Test.Framework                         (Test)
import           Test.Framework.Providers.QuickCheck2   (testProperty)
import           Test.Framework.TH                      (testGroupGenerator)
import qualified Test.QuickCheck                        as QC

prop_append :: Class.BuildTree Int (Sum Int) -> QC.Property
prop_append = Class.prop_build (Proxy :: Proxy Splay.Tree)

prop_split :: Int -> Class.BuildTree Int (Sum Int) -> QC.Property
prop_split = Class.prop_split (Proxy :: Proxy Splay.Tree)

tests :: Test
tests = $(testGroupGenerator)