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:
CaS 2003-04-07 08:26:40 +00:00
parent e4472e049d
commit 4bd83219c2
5 changed files with 72 additions and 191 deletions

View file

@ -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
{

View file

@ -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";