1
module Test.Tasty.Hedgehog.Group
8
import Hedgehog (Group (..), Property)
9
import Hedgehog.Internal.Property (GroupName (..), PropertyName (..))
10
import Test.Tasty (TestTree, testGroup)
11
import Test.Tasty.Hedgehog (testProperty)
13
fromGroup :: Group -> TestTree
15
testGroup (unGroupName $ groupName group) $
16
map mkTestTree (groupProperties group)
18
mkTestTree :: (PropertyName, Property) -> TestTree
19
mkTestTree (propName, prop) = testProperty (unPropertyName propName) prop