mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-19 04:15:06 +00:00
Fixed compiler warnings.
This commit is contained in:
1 parent
248c53b445
commit
a1af505230
2 files changed
+7
-6
No files matched your search
@@ -12,9 +12,10 @@
|
||||
#import "TennisGame2.h"
|
||||
#import "TennisGame3.h"
|
||||
|
||||
@interface TennisTests (Parametrized)
|
||||
@interface TennisTests()
|
||||
+ (NSArray*)parameters;
|
||||
@end
|
||||
|
||||
@implementation TennisTests (Parametrized)
|
||||
+ (id)defaultTestSuite {
|
||||
SenTestSuite *testSuite = [[SenTestSuite alloc] initWithName:NSStringFromClass(self)];
|
||||
@@ -100,7 +101,7 @@
|
||||
}
|
||||
|
||||
- (NSString *)name {
|
||||
return [NSString stringWithFormat:@"%@ (%d,%d,%@)", [super name], player1Score, player2Score, expectedScore];
|
||||
return [[super name] stringByReplacingOccurrencesOfString:@"]" withString:[NSString stringWithFormat:@" (%d,%d,%@)]", player1Score, player2Score, expectedScore]];
|
||||
}
|
||||
|
||||
- (void)checkAllScoresForGame:(TennisGame *)game {
|
||||
|
||||
Reference in new issue
Block a user