lgtk-0.1.0.1: lens-based GUI with Gtk backend

Safe HaskellNone

Control.MLens.ExtRef.Pure.Test

Contents

Description

Tests for the reference implementation of the ExtRef interface.

Synopsis

Basic test environment

type Test i = Ext i (Writer [String])Source

Tests use a writer monad to tell errors.

(==>) :: (Eq a, Show a) => Ref (Test i) a -> a -> Test i ()Source

This operator checks the current value of a given reference.

runTest :: (forall i. Test i a) -> [String]Source

Test running results the list of error messages given by (==>).

Test suit

tests :: [String]Source

tests contains error messages; it should be emtpy.

Look inside the sources for the tests.