diff options
Diffstat (limited to 'Foundation/GTMNSFileManager+PathTest.m')
-rw-r--r-- | Foundation/GTMNSFileManager+PathTest.m | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Foundation/GTMNSFileManager+PathTest.m b/Foundation/GTMNSFileManager+PathTest.m index 0f2eb35..ac36cac 100644 --- a/Foundation/GTMNSFileManager+PathTest.m +++ b/Foundation/GTMNSFileManager+PathTest.m @@ -19,7 +19,7 @@ #import "GTMSenTestCase.h" #import "GTMNSFileManager+Path.h" -@interface GTMNSFileManager_PathTest : SenTestCase { +@interface GTMNSFileManager_PathTest : GTMTestCase { NSString *baseDir_; } @end @@ -131,7 +131,7 @@ @"a.txt", @"b.txt", @"c.rtf", @"d.m", }; - for (int i = 0; i < sizeof(testDirs) / sizeof(NSString*); i++) { + for (size_t i = 0; i < sizeof(testDirs) / sizeof(NSString*); i++) { NSString *testDir = nil; if ([testDirs[i] length]) { testDir = [baseDir_ stringByAppendingPathComponent:testDirs[i]]; @@ -139,7 +139,7 @@ } else { testDir = baseDir_; } - for (int j = 0; j < sizeof(testFiles) / sizeof(NSString*); j++) { + for (size_t j = 0; j < sizeof(testFiles) / sizeof(NSString*); j++) { NSString *testFile = [testDir stringByAppendingPathComponent:testFiles[j]]; STAssertTrue([@"test" writeToFile:testFile atomically:YES], nil); } @@ -147,13 +147,13 @@ // build set of the top level items NSMutableArray *allFiles = [NSMutableArray array]; - for (int i = 0; i < sizeof(testDirs) / sizeof(NSString*); i++) { + for (size_t i = 0; i < sizeof(testDirs) / sizeof(NSString*); i++) { if ([testDirs[i] length]) { NSString *testDir = [baseDir_ stringByAppendingPathComponent:testDirs[i]]; [allFiles addObject:testDir]; } } - for (int j = 0; j < sizeof(testFiles) / sizeof(NSString*); j++) { + for (size_t j = 0; j < sizeof(testFiles) / sizeof(NSString*); j++) { NSString *testFile = [baseDir_ stringByAppendingPathComponent:testFiles[j]]; [allFiles addObject:testFile]; } |