nanospec-0.1.0: A lightweight implementation of a subset of Hspec's API

Safe HaskellSafe-Inferred

Test.Hspec

Contents

Description

A lightweight implementation of a subset of Hspec's API.

Synopsis

Types

data SpecM a Source

Instances

type Spec = SpecM ()Source

Defining a spec

Setting expectations

shouldBe :: (Show a, Eq a) => a -> a -> ExpectationSource

shouldReturn :: (Show a, Eq a) => IO a -> a -> ExpectationSource

Running a spec