mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Tidyups and fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16384 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e4472e049d
commit
4bd83219c2
5 changed files with 72 additions and 191 deletions
|
@ -186,7 +186,7 @@ main()
|
|||
// Joining string elements
|
||||
printf("Method: -componentsJoinedByString:\n");
|
||||
i = [c componentsJoinedByString: @"/"];
|
||||
if ([i isEqual: @"<NSObject>/<NSArray>/<NSMutableArray>"])
|
||||
if ([i isEqual: @"NSObject/NSArray/NSMutableArray"])
|
||||
printf("%s is correct\n", [i cString]);
|
||||
else
|
||||
{
|
||||
|
|
|
@ -55,6 +55,17 @@ main(int argc, char** argv, char** envp)
|
|||
keys = [NSArray arrayWithObjects:
|
||||
@"cow", @"fish", @"horse", @"chicken", nil];
|
||||
a = [NSDictionary dictionaryWithObjects:objects forKeys:keys];
|
||||
b = [NSDictionary dictionaryWithObjectsAndKeys:
|
||||
@"vache",
|
||||
@"cow",
|
||||
@"poisson",
|
||||
@"fish",
|
||||
@"cheval",
|
||||
@"horse",
|
||||
@"poulet",
|
||||
@"chicken", nil];
|
||||
|
||||
printf("Match is %d\n", [a isEqual: b]);
|
||||
|
||||
printf("NSDictionary has count %d\n", [a count]);
|
||||
key = @"fish";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue