Looking for tips on debugging with OCUnit
Looking for tips on debugging with OCUnit
- Subject: Looking for tips on debugging with OCUnit
- From: Mike Zornek <email@hidden>
- Date: Sun, 07 Mar 2004 15:49:04 -0500
I have a project called TicTacToe that in time I hope will be a nice little
game. The main purpose of making it is for me to give OCUnit a good real
world test. I've gotten pretty far, building/installing the SenTestingKit
framework, working on the samples (ie: Person), and now even getting a good
number of tests under my belt on this new app -- but I've hit a wall.
http://mikezornek.com/temp/TicTacToe03072004.sit
I have two classes: MZTicTacToeGameBoard and MZTicTacToeSpace. The basic
idea is that each board has nine spaces, each space has a mark property
which can be "X, "O" or "". I wrote all of the tests for MZTicTacToeSpace,
implemented the code to pass the tests and then moved on to
MZTicTacToeGameBoard. I began to write some basic tests here but after doing
the implementation they still fail. I personally don't see why they are
failing and attempts to NSLog values out doesn't seem to work.
In general what are some good tips for finding bugs such as this one? And if
you have spotted mine please let me know.
Thanks,
~ Mike
-----
Mike Zornek
Web Designer, Media Developer, Programmer and Geek
Personal site: <
http://MikeZornek.com>
New Project: <
http://WebDevWiki.com>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.