mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
6ba57fe92b
commit
23a7a83ded
1 changed files with 12 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue