File: GraphVizSpec.hs

package info (click to toggle)
haskell-graphviz 2999.20.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,512 kB
  • sloc: haskell: 12,136; makefile: 2
file content (34 lines) | stat: -rw-r--r-- 997 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{- |
   Module      : Data.GraphVizSpec
   Description : Testing algorithms
   Copyright   : Matthew Sackman, Ivan Lazar Miljenovic
   License     : BSD3
   Maintainer  : Ivan.Miljenovic@gmail.com



 -}
module Data.GraphVizSpec (spec) where

import Data.GraphViz.Testing.Instances  ()
import Data.GraphViz.Testing.Properties (prop_dotizeAugment,
                                         prop_dotizeAugmentUniq,
                                         prop_dotizeHasAugment)

import Test.Hspec            (Spec)
import Test.Hspec.QuickCheck (prop)

import Data.Graph.Inductive.PatriciaTree (Gr)

--------------------------------------------------------------------------------

spec :: Spec
spec = do
  prop "FGL Graphs are augmentable"
       (prop_dotizeAugment :: GrType -> Bool)
  prop "Ensure augmentation is valid"
       (prop_dotizeHasAugment :: GrType -> Bool)
  prop "Unique edges in augmented FGL Graphs"
       (prop_dotizeAugmentUniq :: GrType -> Bool)

type GrType = Gr Char Double