The Examples

You can download the source files for the book from http://pragprog.com/titles/lotdd/source_code. The examples are grouped by chapter.

Much of what you will learn about TDD involves incrementally growing code. As such, the examples you’ll see within each chapter present incremental versions of the code. The versions correspond to numbered subdirectories (1, 2, 3, ...) within the directory for the chapter. For example, the first code snippet in Chapter 2, Test-Driven Development: A First Example is c2/1/SoundexTest.cpp; it shows the first version of the file SoundexTest.cpp. The second version appears as c2/2/SoundexTest.cpp.

You can also find the example code at GitHub (https://github.com/jlangr). At GitHub, you will find a repository ...

Get Modern C++ Programming with Test-Driven Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.