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/GTMRegexTest.m | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Foundation/GTMRegexTest.m') diff --git a/Foundation/GTMRegexTest.m b/Foundation/GTMRegexTest.m index 033b560..6f41d60 100644 --- a/Foundation/GTMRegexTest.m +++ b/Foundation/GTMRegexTest.m @@ -18,6 +18,7 @@ #import "GTMSenTestCase.h" #import "GTMRegex.h" +#import "GTMUnitTestDevLog.h" // // NOTE: @@ -26,10 +27,10 @@ // libregex, we just want to test our wrapper. // -@interface GTMRegexTest : SenTestCase +@interface GTMRegexTest : GTMTestCase @end -@interface NSString_GTMRegexAdditions : SenTestCase +@interface NSString_GTMRegexAdditions : GTMTestCase @end @implementation GTMRegexTest @@ -57,7 +58,9 @@ STAssertNil([[[GTMRegex alloc] initWithPattern:nil] autorelease], nil); STAssertNil([[[GTMRegex alloc] initWithPattern:nil options:kGTMRegexOptionIgnoreCase] autorelease], nil); + [GTMUnitTestDevLog expectString:@"Invalid pattern \"(.\", error: \"parentheses not balanced\""]; STAssertNil([[[GTMRegex alloc] initWithPattern:@"(."] autorelease], nil); + [GTMUnitTestDevLog expectString:@"Invalid pattern \"(.\", error: \"parentheses not balanced\""]; STAssertNil([[[GTMRegex alloc] initWithPattern:@"(." options:kGTMRegexOptionIgnoreCase] autorelease], nil); // fail cases w/ error param @@ -93,7 +96,9 @@ STAssertNil([GTMRegex regexWithPattern:nil], nil); STAssertNil([GTMRegex regexWithPattern:nil options:0], nil); + [GTMUnitTestDevLog expectString:@"Invalid pattern \"(.\", error: \"parentheses not balanced\""]; STAssertNil([GTMRegex regexWithPattern:@"(."], nil); + [GTMUnitTestDevLog expectString:@"Invalid pattern \"(.\", error: \"parentheses not balanced\""]; STAssertNil([GTMRegex regexWithPattern:@"(." options:0], nil); // fail cases (helper) w/ error param -- cgit v1.2.3