July 2023
Beginner to intermediate
448 pages
10h 57m
English
Although rarely covered in introductory programming tutorials, automated testing is one of the most important subjects in modern software development. Accordingly, this chapter includes an introduction to testing in Python, including a first look at test-driven development, or TDD.
Test-driven development came up briefly in Section 6.5.1, which promised that we would use testing techniques to add an important capability to finding palindromes, namely, being able to detect complicated palindromes such as “A man, a plan, a canal—Panama!” (Figure 6.5) or “Madam, I’m Adam.” (Figure 8.11). This chapter fulfills that promise.
Figure 8.1: The Garden of Eden had it all—even palindromes.
1. “The Temptation ...
Read now
Unlock full access