|
From: Geisschaes <gei...@us...> - 2005-04-27 19:37:18
|
Update of /cvsroot/macattrick/macattrick In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5163 Modified Files: Player.h Team.m main.m Log Message: Migration of tests from ObjcUnit to UnitKit, small bugs fixed Index: Player.h =================================================================== RCS file: /cvsroot/macattrick/macattrick/Player.h,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** Player.h 15 Jan 2005 17:39:40 -0000 1.16 --- Player.h 27 Apr 2005 19:36:38 -0000 1.17 *************** *** 27,30 **** --- 27,31 ---- //---- eo licence ------------------------------------------------------------// + #import <Cocoa/Cocoa.h> #import <Foundation/Foundation.h> #import "Position.h" Index: main.m =================================================================== RCS file: /cvsroot/macattrick/macattrick/main.m,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** main.m 14 Mar 2005 19:30:52 -0000 1.16 --- main.m 27 Apr 2005 19:36:38 -0000 1.17 *************** *** 33,40 **** #include <CoreServices/CoreServices.h> - // comment out for main build - #import "Test/AllTests.h" - // - int main(int argc, char *argv[]) --- 33,36 ---- *************** *** 47,57 **** [Properties initializeUserDefaults]; - // comment out for main build - NSArray *args = [[NSProcessInfo processInfo] arguments]; - if ([args count] >= 2 && [[args objectAtIndex:1] isEqualToString: @"test"]) { - TestRunnerMain([AllTests class]); - return 0; - } - // return NSApplicationMain(argc, argv); --- 43,46 ---- Index: Team.m =================================================================== RCS file: /cvsroot/macattrick/macattrick/Team.m,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** Team.m 27 Feb 2005 15:14:44 -0000 1.21 --- Team.m 27 Apr 2005 19:36:38 -0000 1.22 *************** *** 144,147 **** --- 144,151 ---- + (Team*) currentTeam { + if(!currentTeam) { + Team *temp = [[Team alloc] init]; + [temp release]; + } return currentTeam; } |