Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

19.3. The EUnit Infrastructure

In this section, you will learn about the foundations of the EUnit system, with which you can build tests and test sets.

19.3.1. Assert Macros

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:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint