Put the Knowledge to Work

Test-Driven Development for Embedded C — Pragmatic Programmers (118 / 173)

👈 Where Are We? | TOC | Chapter 13 Adding Tests to Legacy Code 👉

  1. Now that TimeService is responsible for comparing days and metadays, there are many redundant LightScheduler tests. You are not paid by the test. Remove the redundant tests from LightScheduler.
  2. Refactor the LightScheduler found in code/t0/src/HomeAutomation in the book code distribution. Compare your result with mine.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
The Pragmatic Programmers

The Pragmatic Programmers

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.