Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In this section, you will learn about the foundations of the EUnit system, with which you can build tests and test sets.
The basic building block of EUnit is a single test, given by a ..._test() function. On the right side of the earlier code examples, we used assertEqual and assertError to check values and exceptions. Other assert macros include the following: