From c53ec5520e39096e0804ce8d89a21378c0904481 Mon Sep 17 00:00:00 2001 From: thomasvl Date: Fri, 13 Jun 2008 19:21:50 +0000 Subject: Landing a log of AppleScript/AppleEvent support code. Landing GTMHTTPServer as a simple server but mainly for use in unittesting. _GTMCompileAssert for doing compile time assertions to GTMDefines.h Lots of improvments for UnitTesting, Dave's gonna put up a wiki page shortly with the full details of what can be done. --- Foundation/GTMNSFileManager+PathTest.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Foundation/GTMNSFileManager+PathTest.m') 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]; } -- cgit v1.2.3