OCP kata.
Matteo Vaccari's Open-Closed kata.
You have to follow this set of rules:
-
Write a failing test.
-
Write a setup that builds an object that makes the test pass.
-
Write next failing test.
-
Can you make it pass by changing the setup and/or creating a new class
and nothing else?-
Yes: Great! Go back to step 3.
-
No: Refactor until you can!
-