Property Structure
Explore the fundamental structure of properties in PropEr, focusing on the roles of type generators, instance variables, and property expressions. Understand how to define and execute property tests effectively using the ?FORALL macro in Erlang.
We'll cover the following...
We'll cover the following...
General property structure
A property has three parts for both Erlang and Elixir:
- Type generator
- Instance of type
- Property expression
Property Structure
The functions generate the data for the test case we enter in the TypeGenerator position, called the generators ...