nanospec-0.2.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

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