Home


 
Main Menu
 Home
CyberPublishing
 
eXtreme Programming
 Test-First Challenge

Test-First Challenge

The way to test-first design in Java, laid out by William Wake:

Website: www.xp123.com/xplor/xp0201

And what I am making out of it in Python:

To each of the unit tests you'll find to the corresponding solution that fulfills the requirements up to this test - so you can see how this nice piece of software is evolving.

Up to now (2002-01-28) I solved Test-First Challenge Part 3. I still avoided to write a parser for evaluating the arithmetic expressions; instead I use Python's eval() function. The cells are now objects of class Cell in a dictionary; the keys in the dictionary are the cell addresses. The dictionary is handed to the eval() function as its second parameter (= global variables). The cells' values are retrieved by implement the __coerce__() method in class Cell to convert the operands of an expression.

Part 4 (GUI with a JTable) will be hard to do in Python because I'll have to find an appropriate GUI library with a table control - or program it myself, what would be interesting anyway. I am considering an HTML representation for the table and integrate this in the CyberPublishing system.

Home    CyberPublishing   
last modification:
2003-05-29
Helmut Merz
Am Steinigen Graben 8
D-86911 Diessen
Tel. +49-8807-4686
helmutm@cyberdev.org