more characters

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40109 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2016-09-26 11:11:05 +00:00
parent 6ba57fe92b
commit 23a7a83ded

View file

@ -9,6 +9,18 @@ int main(int argc, char **argv)
NSString *str;
unichar u;
u = (unichar)0xfdd0;
str = [[NSString alloc] initWithCharacters: &u length: 1];
PASS([str length] == 1, "fdd0 codpepoint is permitted in string");
PASS([str characterAtIndex: 0] == 0xfdd0, "fdd0 is returned properly");
[str release];
u = (unichar)0xfdef;
str = [[NSString alloc] initWithCharacters: &u length: 1];
PASS([str length] == 1, "fdef codpepoint is permitted in string");
PASS([str characterAtIndex: 0] == 0xfdef, "fdef is returned properly");
[str release];
u = (unichar)0xfffd;
str = [[NSString alloc] initWithCharacters: &u length: 1];
PASS([str length] == 1, "fffd codpepoint is permitted in string");