Testing Invasion Percolation
This post originally appeared on the Software Carpentry website.
Finally, after all that refactoring, we get to test our invasion percolation program—although in fact, we spend more time discussing how to structure testing code than we do actually testing.
- Introduction
- The Grid
- Aliasing
- Randomness
- Finding Neighbors
- Resolving Ties
- Assembling the Program
- Bugs
- Refactoring
- Testing