mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-12 00:51:08 +00:00
add check for non-break space
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38613 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
983fde3394
commit
b13ca745dd
1 changed files with 48 additions and 45 deletions
|
@ -8,6 +8,7 @@ int main()
|
|||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
NSCharacterSet *theSet,*iSet;
|
||||
NSData *data1 = nil;
|
||||
unichar ch;
|
||||
theSet = [NSCharacterSet alphanumericCharacterSet];
|
||||
PASS([theSet characterIsMember: 'A'] &&
|
||||
[theSet characterIsMember: 'Z'] &&
|
||||
|
@ -45,6 +46,8 @@ int main()
|
|||
[theSet characterIsMember: '\t'],
|
||||
"Check some characters from whitespaceAndNewlineCharacterSet");
|
||||
|
||||
PASS([theSet characterIsMember: 0x00A0], "a non-break-space is whitespace");
|
||||
|
||||
data1 = [theSet bitmapRepresentation];
|
||||
PASS(data1 != nil && [data1 isKindOfClass: [NSData class]],
|
||||
"-bitmapRepresentation works");
|
||||
|
|
Loading…
Reference in a new issue