diff options
author | stuconnolly <stuart02@gmail.com> | 2009-11-13 23:35:07 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-11-13 23:35:07 +0000 |
commit | 8baab51469e6fe1ea62ce9203d8ef2fe643879d7 (patch) | |
tree | 07126df856a05499c35a8ab3f5792dc7126d3c9b /UnitTests/stringCategoryAdditionsTest.m | |
parent | edcb8806b64a017bb25a0d47b2cd8ba4598ce39d (diff) | |
download | sequelpro-8baab51469e6fe1ea62ce9203d8ef2fe643879d7.tar.gz sequelpro-8baab51469e6fe1ea62ce9203d8ef2fe643879d7.tar.bz2 sequelpro-8baab51469e6fe1ea62ce9203d8ef2fe643879d7.zip |
Tidy up and fix unit tests.
Diffstat (limited to 'UnitTests/stringCategoryAdditionsTest.m')
-rw-r--r-- | UnitTests/stringCategoryAdditionsTest.m | 10 |
1 files changed, 6 insertions, 4 deletions
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 <http://code.google.com/p/sequel-pro/> -// #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 |