Update cheat-sheet.md
authorBernhard Konrad <bernhard.konrad+github@gmail.com>
Thu, 11 Apr 2013 02:08:46 +0000 (19:08 -0700)
committerW. Trevor King <wking@tremily.us>
Fri, 1 Nov 2013 20:46:40 +0000 (13:46 -0700)
minor layout changes

testing/cheat-sheet.md

index 825241e0ef1f4ae131f16e0f0e56283d930a137d..990a047bc5bb00ee8d571be646d5a722283f1bf0 100644 (file)
@@ -4,10 +4,10 @@ Python Testing Cheat Sheet
 Why testing?
 ------------
 
-# Helps you to think about expected behavior, especially boundary cases,
-# documents expected behavior,
-# confidence recent changes didn't break anything that worked before,
-# confidence code is correct.
+1. Helps you to think about expected behavior, especially boundary cases,
+2. documents expected behavior,
+3. confidence recent changes didn't break anything that worked before,
+4. confidence code is correct.
 
 
 Defensive programming
@@ -85,8 +85,11 @@ Test-driven deveopment
 ----------------------
 
 ***Red.*** Write test function that checks one new functionality you want to add to your code. -- tests have to fail.
+
 ***Green.*** Write minimal code that implements desired features until all tests pass.
+
 ***Refactor.*** Improve code wrt. readability and speed. Constantly check that tests still pass.
+
 ***Commit.*** Commit working code to version control.
 
 Repeat.