/hedgehog-golden

A project for hedgehog golden testing

Primary LanguageHaskellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

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