@hackage hedgehog-golden1.0.1

Golden testing capabilities for hedgehog using Aeson

Hedgehog Golden

A golden file extension to hedgehog

Hedgehog support

Hedgehog v1.x series is supported by hedgehog-golden v1.x series

Hedgehog v0.6.x series is supported by hedgehog-golden v0.6.x series

Example

{-# LANGUAGE TemplateHaskell #-}

import           Hedgehog
import qualified Hedgehog.Gen as Gen
import qualified Hedgehog.Golden.Aeson as Aeson

-- | A golden test for characters in the hex range
prop_char_golden :: Property
prop_char_golden =
  Aeson.goldenProperty Gen.hexit

tests :: IO Bool
tests =
  checkParallel $$discover