BankOCR Outside-in TDD Kata Setup

BankOCR Code Kata, initial setup for various programming languages focusing on Outside-In development.

Assignment: BankOCR

You work for a bank, which has a machine to assist in reading letters. The machine scans the paper documents, and produces a file with a number of entries which each look like this:


Each entry is 4 lines long, each line has 27 characters. The first 3 lines contain an account number written using pipes and underscores, and the fourth line is blank. Each account number should have 9 digits, all of which should be in the range 1-9.

Write a program that can take this file and parse it into actual account numbers.

Don't Focus on Getting it Done. Focus on Doing It Perfectly.

Constraint: Outside-In

In Outside-In (London school, top-down or "mockist TDD") you build the system from the "outside-in", following the user interaction through all the parts of the system. You start with the interactions and collaborators upfront (especially those at top levels), mocking necessary dependencies (or creating fake implementations). With every finished component, you move to the previously mocked collaborators and start with TDD again there, creating actual implementations (which, even though used, were not needed before thanks to abstractions). See Emily Bache's article on Outside-In development for a discussion of Outside-In both with London school and classic TDD.


New BSD License, see license.txt in repository.