Summary
In this chapter, we created a structure to hold information for to-do items using TDD. We learned that TDD means switching between test code and production code all the time. In addition, we realized that we should use the assert method with the accuracy parameter when we need to compare floating-point numbers. What you learned in this chapter will help you write better and more robust unit tests.
In the next chapter, we will build a structure to manage to-do items. They need to be stored somewhere and we need to have a way to add and check off to-do items.