trystan/hspec — Issue #29: hspec should be able to go from report to specs
Author: trystan
Created: 2011-11-15 21:44:19+00:00
State: open

It would be super cool if you could take a report like this:

myabs
- returns the original number when given a positive input
- returns a positive number when given a negative input
- returns zero when given zero

and produce empty specs that look something like this:

specs :: IO Specs
specs = describe "myabs" [
it "returns the original number when given a positive input"
undefined,

it "returns a positive number when given a negative input"
undefined,

it "returns zero when given zero"
undefined]