Author: rfm
Date: Fri May 22 17:28:35 2015
New Revision: 38522
URL: http://svn.gna.org/viewcvs/gnustep?rev=38522&view=rev
Log:
add a couple of checks for hasPrefix: and hasSuffix:
Modified:
libs/base/trunk/Tests/base/NSString/test00.m
Modified: libs/base/trunk/Tests/base/NSString/test00.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Tests/base/NSString/test00.m?rev=38522&r1=38521&r2=38522&view=diff
==============================================================================
--- libs/base/trunk/Tests/base/NSString/test00.m (original)
+++ libs/base/trunk/Tests/base/NSString/test00.m Fri May 22 17:28:35 2015
@@ -428,6 +428,11 @@
[str release];
PASS_EQUAL(sub, @"aaa", "a substring uses its own buffer");
+ PASS(YES == [@"hello" hasPrefix: @"hel"], "hello has hel as a prefix");
+ PASS(NO == [@"hello" hasPrefix: @"Hel"], "hello does not have Hel as a
prefix");
+ PASS(YES == [@"hello" hasSuffix: @"llo"], "hello has llo as a suffix");
+ PASS(NO == [@"hello" hasSuffix: @"lLo"], "hello does not have lLo as a
suffix");
+
[arp release]; arp = nil;
return 0;
}
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs