module Convex.Tasty.HUnit (
testCase,
module Test.Tasty.HUnit,
) where
import Convex.Tasty.Streaming.SrcLoc (withSrcLoc)
import GHC.Stack (withFrozenCallStack)
import Test.Tasty (TestName, TestTree)
import Test.Tasty.HUnit hiding (testCase)
import Test.Tasty.HUnit qualified as HUnit
testCase :: (HasCallStack) => TestName -> Assertion -> TestTree
testCase :: HasCallStack => TestName -> Assertion -> TestTree
testCase TestName
name Assertion
body = (HasCallStack => TestTree) -> TestTree
forall a. HasCallStack => (HasCallStack => a) -> a
withFrozenCallStack (HasCallStack => TestTree -> TestTree
TestTree -> TestTree
withSrcLoc (TestName -> Assertion -> TestTree
HUnit.testCase TestName
name Assertion
body))