mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-12 09:01:05 +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];
|
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||||
NSCharacterSet *theSet,*iSet;
|
NSCharacterSet *theSet,*iSet;
|
||||||
NSData *data1 = nil;
|
NSData *data1 = nil;
|
||||||
|
unichar ch;
|
||||||
theSet = [NSCharacterSet alphanumericCharacterSet];
|
theSet = [NSCharacterSet alphanumericCharacterSet];
|
||||||
PASS([theSet characterIsMember: 'A'] &&
|
PASS([theSet characterIsMember: 'A'] &&
|
||||||
[theSet characterIsMember: 'Z'] &&
|
[theSet characterIsMember: 'Z'] &&
|
||||||
|
@ -45,6 +46,8 @@ int main()
|
||||||
[theSet characterIsMember: '\t'],
|
[theSet characterIsMember: '\t'],
|
||||||
"Check some characters from whitespaceAndNewlineCharacterSet");
|
"Check some characters from whitespaceAndNewlineCharacterSet");
|
||||||
|
|
||||||
|
PASS([theSet characterIsMember: 0x00A0], "a non-break-space is whitespace");
|
||||||
|
|
||||||
data1 = [theSet bitmapRepresentation];
|
data1 = [theSet bitmapRepresentation];
|
||||||
PASS(data1 != nil && [data1 isKindOfClass: [NSData class]],
|
PASS(data1 != nil && [data1 isKindOfClass: [NSData class]],
|
||||||
"-bitmapRepresentation works");
|
"-bitmapRepresentation works");
|
||||||
|
|
Loading…
Reference in a new issue