|
From: Geisschaes <gei...@us...> - 2005-05-29 16:24:05
|
Update of /cvsroot/macattrick/macattrick/Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14757/Test Modified Files: HattrickOrgTest.m PlayerTest.m Log Message: downloaded files are now copied to ~Library/Application Support/Macattrick/, too Index: PlayerTest.m =================================================================== RCS file: /cvsroot/macattrick/macattrick/Test/PlayerTest.m,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** PlayerTest.m 27 Apr 2005 19:36:45 -0000 1.16 --- PlayerTest.m 29 May 2005 16:23:57 -0000 1.17 *************** *** 164,166 **** --- 164,188 ---- } + -(void) testAddFormerState { + PlayerState *formerState = [[PlayerState alloc] init]; + [formerState setPassingSkill:9]; + NSMutableDictionary *formerStates = [pirmin valueForKey:@"formerStates"]; + UKNotNil(formerStates); + [pirmin addState:formerState forDate: @"2005-05-29"]; + UKEqual([formerStates count], 1); + [formerState release]; + } + + -(void) testStateAtDate { + PlayerState *formerState = [[PlayerState alloc] init]; + [formerState setPassingSkill:9]; + [walter addState:formerState forDate: @"2005-05-29"]; + PlayerState *formerState2 = [walter stateAtDate:@"2005-05-29"]; + UKNotNil(formerState2); + UKObjectsSame(formerState, formerState2); + PlayerState *formerState3 = [walter stateAtDate:@"2005-01-29"]; + UKNil(formerState3); + [formerState release]; + } + @end Index: HattrickOrgTest.m =================================================================== RCS file: /cvsroot/macattrick/macattrick/Test/HattrickOrgTest.m,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** HattrickOrgTest.m 27 Apr 2005 19:36:45 -0000 1.13 --- HattrickOrgTest.m 29 May 2005 16:23:57 -0000 1.14 *************** *** 202,204 **** --- 202,208 ---- } + - (void) testCopyToCurrentEnvironment { + [[HattrickOrg uniqueInstance] copyToCurrentEnvironment]; + UKTrue([[NSFileManager defaultManager] fileExistsAtPath:[Properties leagueDetailsFileInPath:[Properties currentEnvironmentPath]]]); + } @end |