mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Rudimentary NSOrderedSet tests
This commit is contained in:
parent
372030f056
commit
48cf585c46
1 changed files with 1 additions and 5 deletions
|
@ -1,14 +1,11 @@
|
|||
#import "ObjectTesting.h"
|
||||
#import <Foundation/NSAutoreleasePool.h>
|
||||
/*
|
||||
#import <Foundation/NSOrderedSet.h>
|
||||
*/
|
||||
|
||||
int main()
|
||||
{
|
||||
START_SET("NSOrderedSet base")
|
||||
|
||||
/*
|
||||
NSOrderedSet *testObj;
|
||||
NSMutableArray *testObjs = [NSMutableArray new];
|
||||
|
||||
|
@ -17,7 +14,7 @@ int main()
|
|||
PASS(testObj != nil && [testObj count] == 0,
|
||||
"can create an empty ordered set");
|
||||
|
||||
testObj = [NSOrderedSet setWithObject: @"Hello"];
|
||||
testObj = [NSOrderedSet orderedSetWithObject: @"Hello"];
|
||||
[testObjs addObject: testObj];
|
||||
PASS(testObj != nil && [testObj count] == 1,
|
||||
"can create an ordered set with one element");
|
||||
|
@ -26,7 +23,6 @@ int main()
|
|||
test_NSCoding(testObjs);
|
||||
test_NSCopying(@"NSOrderedSet", @"NSMutableOrderedSet", testObjs, YES, NO);
|
||||
test_NSMutableCopying(@"NSOrderedSet", @"NSMutableOrderedSet", testObjs);
|
||||
*/
|
||||
|
||||
END_SET("NSOrderedSet base")
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue