Upgrade to Pro — share decks privately, control downloads, hide ads and more …

TDD is easy!

TDD is easy!

You can do it without any framework.

It takes 15 lines of code.

To prove this point I've shown an example of TDD in assembly on Commodore 64.

In case you need a testing framework after all, feel free to check the 64spec library (http://64bites.com/64spec).

Michał Taszycki

May 17, 2016
Tweet

More Decks by Michał Taszycki

Other Decks in Programming

Transcript

  1. 1. Change border color to green 2. Test the code

    3. Change the border to red on failure
  2. 4. Make the test pass 1. Change border color to

    green 2. Test the code 3. Change the border to red on failure
  3. 1. Change border color to green 2. Test the code

    3. Change the border to red on failure 4. Make the test pass
  4. 1.Use Go for parallel execution 2.Save output on a virtual

    floppy 3.Crash the Emulator [sic!] 4.Gather results 5.??? 6.Profit