Skip to content

Commit

Permalink
docs(course): add regression test section
Browse files Browse the repository at this point in the history
  • Loading branch information
symbiont-stevan-andjelkovic committed Feb 8, 2022
1 parent 2b7f953 commit c9577ac
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doc/advanced-testing-mini-course/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,19 @@ prop_counter = forAll genProgram $ \(Program cmds) -> do
undefined
```

* Regression tests

```haskell
runProgram :: Program -> IO Bool
runProgram = undefined

assertProgram :: String -> Program -> Assertion
assertProgram msg prog = do
b <- runProgram prog
assertBool msg b

```

* Excerises

1. Implement shrinking for programs.
Expand Down

0 comments on commit c9577ac

Please sign in to comment.