tdd-util-0.2.0.1: Test framework wrapper

Safe HaskellNone

Test.Util.Framework

Description

Test.Util.Framework is a super-module that re-exports other modules pertaining to TDD, so that they can be imported under a single module.

HUnit's Test type is renamed to HTest, and test-framework's to TTest. The same renaming scheme, with the addition that Q is prepended for QuickCheck, has been applied to the following names:

  • Test
  • assert
  • State
  • test

Result is renamed to SingleResult; reason in this module cannot be renamed, so it is unfortunately not exported.

Unfortunately, Haskell's design makes it inconvenient to rename classes. In this module, Testable is not re-exported from any module.

Synopsis

Documentation

module Test.HUnit

type HTest = TestSource

Alias for Test.

type TTest = TestSource

Alias for Test.

qAssert :: Monad m => Bool -> PropertyM m ()Source

Alias for assert.

type QState = StateSource

Alias for State.

qTest :: QState -> (StdGen -> Int -> Prop) -> IO ResultSource

Alias for test.

type SingleResult = ResultSource

Alias for Result.