Put the Knowledge to Work

  1. Start your own LedDriver so that you can follow along in the next chapter. You will find starter files in code/SandBox. Look there for a README.txt file.

  2. Write a test list for a first-in first-out CircularBuffer that holds a series of ints.

  3. Start test-driving the CircularBuffer. Choose tests that check the initial state and explore its interface. Only choose tests that can pass with hard-coded return results. You will need to modify the makefile so it can find the CircularBuffer files. You will get a chance to finish it after the next chapter.



The Edsger Dijkstra quote is from The Humble Programmer[THP] .


stdint.h is only guaranteed to exist in compilers that are C99 or later.


Found at http://butunclebob.com/ArticleS.UncleBob.TheThreeRulesOfTdd


See http://www.c2.com/cgi/wiki?DoTheSimplestThingThatCouldPossiblyWork.