mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
add test for array as key
This commit is contained in:
parent
7977bcb19d
commit
2a522739cb
1 changed files with 5 additions and 0 deletions
|
@ -258,6 +258,11 @@ int main()
|
|||
"data/number/data are ok in serialized property-list");
|
||||
#endif
|
||||
|
||||
NSArray *a = [NSArray array];
|
||||
NSDictionary *d = [NSDictionary dictionaryWithObjectsAndKeys:
|
||||
@"val", a, @"val2", @"key2", nil];
|
||||
PASS_EQUAL([d objectForKey: a], @"val", "array as dictionary key works")
|
||||
|
||||
[arp release]; arp = nil;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue