Today we discussed test-driven development inside Tinderbox, focusing on an interesting Michael Becker problem from this week:
Assume that the text of a note is marked up with brief passages highlighted in blue. “Explode” the note, creating new notes whose titles are the highlighted passages, and whose text is the text up to the next highlighted passage.
We develop a small library of functions to help do this, with a suite of tests to confirm that the library is doing what we expect.
By taking very small steps, we can avoid situations where something is wrong and we don’t know where to look!
Tinderbox TDD.tbx (341.6 KB)
Video: Tinderbox Meetup: Test Driven Tinderbox on Vimeo
Chat: chat.txt (3.4 KB)