mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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:
parent
162e32d271
commit
983edbe0ef
14 changed files with 18 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue