summaryrefslogtreecommitdiff
path: root/Biz/Test.hs
blob: 9af8912bfa98ae43b3f0d7a95a9575f22beb59c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{-# LANGUAGE NoImplicitPrelude #-}

module Biz.Test
  ( Tree,
    group,
    unit,
    (@=?),
  )
where

-- : dep tasty
-- : dep tasty-hunit
import Alpha hiding (group)
import qualified Test.Tasty as Tasty
import Test.Tasty.HUnit ((@=?))
import qualified Test.Tasty.HUnit as HUnit

type Tree = Tasty.TestTree

group :: Tasty.TestName -> [Tasty.TestTree] -> Tasty.TestTree
group = Tasty.testGroup

unit :: Tasty.TestName -> HUnit.Assertion -> Tasty.TestTree
unit = HUnit.testCase