Skip to Content
Learn Haskell by Example
book

Learn Haskell by Example

by Philipp Hagenlocher
December 2024
Beginner content levelBeginner
456 pages
13h 37m
English
Manning Publications
Content preview from Learn Haskell by Example

9 Quick checks and random tests

This chapter covers

  • Working with random values
  • Building a small property testing framework
  • Using the popular testing framework QuickCheck
  • Tailoring random value generators for special test cases
  • Equipping software projects with test suites

The previous chapters have dealt with writing Haskell code for various applications. Something we have neglected to ask is this: Is the code we wrote even correct? Does it do the right things? Are our algorithms producing the correct results? In software engineering, this question is often answered by testing, which is what we want to explore in this chapter. To get familiar with testing, we cover the popular testing library QuickCheck and explore property testing in ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Get Programming with Haskell

Get Programming with Haskell

Will Kurt
Haskell in Depth

Haskell in Depth

Vitaly Bragilevsky

Publisher Resources

ISBN: 9781633438934Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link