Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
sol committed Mar 30, 2013
1 parent 6edc268 commit 9917b4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -5,7 +5,7 @@ assertions as QuickCheck properties.

Why would you want to do this?

### Convenient testing of IO actions
## Convenient testing of IO actions

Example: Setting an environment variable with `setEnv` and then getting the
value back with `getEnv` should work for _arbitrary_ key–value pairs. Sounds
Expand All @@ -27,10 +27,10 @@ validKey k = (not . null) k && '\NUL' `notElem` k && '=' `notElem` k
validValue v = (not . null) v && '\NUL' `notElem` v
```

ghci>>> quickCheck prop_setEnv
ghci> quickCheck prop_setEnv
+++ OK, passed 100 tests.

### Better error messages for failing QuickCheck properties
## Better error messages for failing QuickCheck properties

You can e.g. use HUnit's `@?=`

Expand Down

0 comments on commit 9917b4c

Please sign in to comment.