add fffd and ffff

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

View file

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