ibooksonline

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.

Footnotes

[6]

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

[7]

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

[8]

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

[9]

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