• Skip to main content
  • Skip to footer

PurelyFunctional.tv

  • Learn Clojure
  • About
  • 🛒 Cart
  • Log in
Strategies for properties: algebraic properties

Want this course?

Buy for $99
Download
 Video time: 40m55s
PREVIOUS
NEXT

Want this course?

Buy for $99

Strategies for properties: algebraic properties

Course: Beginning Property-Based Testing with test.check

Updated October 22, 2019

Description
Code

I often run through a short list of algebraic properties, the ones you learn in Algebra class, to find properties to test. In this lesson, we go over six properties that you can use and modify to your needs.

Buy this course to view the code.

Next Lesson

1 hr

Testing pure functions

Pure functions are the easiest things to test. You can run them as many times as you want without fear of side effects. In this long episode, watch over my shoulder as I test five different functions. Three of the functions are fairly mathematical, so they're pretty straightforward. But two are copied from real-world code. You'll get to see the raw process, right here.

Course: Beginning Property-Based Testing with test.check

0 / 14
0 / 14
 
Lessons
 
What is Property-Based Testing?
free  
18 min 
 
What is test.check?
 
5 min 
 
Advantages of Property-Based Testing
 
7 min 
 
When can you use Property-Based Testing
 
8 min 
 
How does Property-Based Testing work?
free  
12 min 
 
An overview of property-based testing with an example test
 
34 min 
 
A tour of the built-in generators
 
44 min 
 
Building your own simple generators
 
31 min 
 
Strategies for properties: functionality
 
16 min 
 
Strategies for properties: invariants
 
10 min 
 
Strategies for properties: algebraic properties
 
41 min 
 
Testing pure functions
 
1 hr 
 
When to test: before implementation
 
41 min 
 
When to test: after implementation
 
44 min 

Footer CTA

Level up your Clojure skills

The PurelyFunctional.tv Newsletter is a weekly email that helps you improve your Clojure skills through challenges, tips, and news.

Enter your email address to receive emails about Clojure and Functional Programming. These include the weekly newsletter and occasional offers. You can unsubscribe any time.

Copyright © 2021 LispCast and Eric Normand