From 8baab51469e6fe1ea62ce9203d8ef2fe643879d7 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Fri, 13 Nov 2009 23:35:07 +0000 Subject: Tidy up and fix unit tests. --- UnitTests/stringCategoryAdditionsTest.m | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'UnitTests/stringCategoryAdditionsTest.m') diff --git a/UnitTests/stringCategoryAdditionsTest.m b/UnitTests/stringCategoryAdditionsTest.m index cff13ac9..11a4a49b 100644 --- a/UnitTests/stringCategoryAdditionsTest.m +++ b/UnitTests/stringCategoryAdditionsTest.m @@ -20,7 +20,6 @@ // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // More info at -// #import "stringCategoryAdditionsTest.h" #import "SPStringAdditions.h" @@ -40,14 +39,17 @@ - (void)testStringByRemovingCharactersInSet { NSCharacterSet *junk = [NSCharacterSet characterSetWithCharactersInString:@"abc',ü"]; + NSString *s = @"this is big, crazy st'ring"; NSString *expect = @"this is ig rzy string"; - STAssertEqualObjects( [s stringByRemovingCharactersInSet:junk], expect, @"stringByRemovingCharactersInSet" ); - // check UTF + STAssertEqualObjects([s stringByRemovingCharactersInSet:junk], expect, @"stringByRemovingCharactersInSet"); + + // Check UTF s = @"In der Kürze liegt die Würz"; expect = @"In der Krze liegt die Wrz"; - STAssertEqualObjects( [s stringByRemovingCharactersInSet:junk], expect, @"stringByRemovingCharactersInSet" ); + + STAssertEqualObjects([s stringByRemovingCharactersInSet:junk], expect, @"stringByRemovingCharactersInSet"); } @end -- cgit v1.2.3