|
From: Geisschaes <gei...@us...> - 2005-07-03 19:52:25
|
Update of /cvsroot/macattrick/macattrick/Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21944/Test Modified Files: PlayerListTest.m PlayerTest.m Log Message: started to implement user defined player lists, currently in a drawer Index: PlayerTest.m =================================================================== RCS file: /cvsroot/macattrick/macattrick/Test/PlayerTest.m,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** PlayerTest.m 29 May 2005 16:23:57 -0000 1.17 --- PlayerTest.m 3 Jul 2005 19:52:17 -0000 1.18 *************** *** 127,131 **** -(void) testDownloadedPlayer { ! PlayerList *tempPlayerList = [[PlayerList alloc] init]; Player *downloadedPlayer = [tempPlayerList playerAtIndex:0]; UKNotNil(downloadedPlayer); --- 127,131 ---- -(void) testDownloadedPlayer { ! PlayerList *tempPlayerList = [[PlayerList alloc] initFromLocalFile]; Player *downloadedPlayer = [tempPlayerList playerAtIndex:0]; UKNotNil(downloadedPlayer); Index: PlayerListTest.m =================================================================== RCS file: /cvsroot/macattrick/macattrick/Test/PlayerListTest.m,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** PlayerListTest.m 27 Apr 2005 19:36:45 -0000 1.6 --- PlayerListTest.m 3 Jul 2005 19:52:17 -0000 1.7 *************** *** 64,67 **** --- 64,68 ---- - (void)testInitFromXML { UKIntsEqual([playerListLocal numberOfPlayers] , 26); + UKEqual([playerListLocal listName], NSLocalizedString(@"Team", @"Team")); } *************** *** 69,73 **** - (void)testDownload { ! playerListDownload = [[PlayerList alloc] init]; UKTrue( [[playerListDownload playerList] count] > 0); [playerListDownload release]; --- 70,74 ---- - (void)testDownload { ! playerListDownload = [[PlayerList alloc] initFromLocalFile]; UKTrue( [[playerListDownload playerList] count] > 0); [playerListDownload release]; *************** *** 95,99 **** - (void) testTotalTsi { ! playerListDownload = [[PlayerList alloc] init]; UKTrue( [playerListDownload totalTSI] > 100 ); [playerListDownload release]; --- 96,100 ---- - (void) testTotalTsi { ! playerListDownload = [[PlayerList alloc] initFromLocalFile]; UKTrue( [playerListDownload totalTSI] > 100 ); [playerListDownload release]; *************** *** 101,105 **** - (void) testAverageTsi { ! playerListDownload = [[PlayerList alloc] init]; UKTrue( [playerListDownload averageTSI] > 10 ); UKIntsEqual([playerListDownload averageTSI] ,[playerListDownload totalTSI]/[playerListDownload numberOfPlayers]); --- 102,106 ---- - (void) testAverageTsi { ! playerListDownload = [[PlayerList alloc] initFromLocalFile]; UKTrue( [playerListDownload averageTSI] > 10 ); UKIntsEqual([playerListDownload averageTSI] ,[playerListDownload totalTSI]/[playerListDownload numberOfPlayers]); *************** *** 109,113 **** - (void) testAverageAge { UKFloatsEqual([playerListLocal averageAge] ,24.53 ,0.1); ! playerListDownload = [[PlayerList alloc] init]; UKTrue([playerListDownload averageAge] > 17 ); UKTrue([playerListDownload averageAge] < 40 ); --- 110,114 ---- - (void) testAverageAge { UKFloatsEqual([playerListLocal averageAge] ,24.53 ,0.1); ! playerListDownload = [[PlayerList alloc] initFromLocalFile]; UKTrue([playerListDownload averageAge] > 17 ); UKTrue([playerListDownload averageAge] < 40 ); |