add some keyed coding tests

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36424 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2013-03-25 11:05:32 +00:00
parent 0b60eebda4
commit a8a0d68da8
14 changed files with 18 additions and 2 deletions

View file

@ -18,6 +18,7 @@ int main()
[testObjs addObject: obj];
test_NSObject(@"NSArray", testObjs);
test_NSCoding(testObjs);
test_keyed_NSCoding(testObjs);
test_NSCopying(@"NSArray",@"NSMutableArray",testObjs,YES,NO);
test_NSMutableCopying(@"NSArray",@"NSMutableArray",testObjs);
@ -28,7 +29,7 @@ int main()
* mutable array ... we currently copy that
*/
PASS([obj isKindOfClass: [NSMutableArray class]] == YES,"array mutable");
PASS_RUNS([obj addObject: @"x"],"can add to array");
PASS_RUNS([(NSMutableArray*)obj addObject: @"x"],"can add to array");
#else
PASS([obj isKindOfClass: [NSMutableArray class]] == NO,"array immutable");
#endif