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

Safe HaskellSafe-Inferred
LanguageHaskell98

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 -> Expectation infix 1 Source

shouldReturn :: (Show a, Eq a) => IO a -> a -> Expectation infix 1 Source

Running a spec

hspec :: Spec -> IO () Source