mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
import testsuite
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32187 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
734c214892
commit
0e02133729
374 changed files with 20864 additions and 0 deletions
27
Tests/base/NSMutableCharacterSet/test00.m
Normal file
27
Tests/base/NSMutableCharacterSet/test00.m
Normal file
|
@ -0,0 +1,27 @@
|
|||
#import "Testing.h"
|
||||
#import <Foundation/NSAutoreleasePool.h>
|
||||
#import <Foundation/NSCharacterSet.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
NSMutableCharacterSet *testMutableNamedSet, *testMutableNamedSet1, *testMutableNamedSet2;
|
||||
NSCharacterSet *testNamedSet;
|
||||
testMutableNamedSet = [NSMutableCharacterSet letterCharacterSet];
|
||||
testNamedSet = [NSCharacterSet letterCharacterSet];
|
||||
[testMutableNamedSet invert];
|
||||
PASS([testMutableNamedSet characterIsMember:[@"." characterAtIndex:0]] &&
|
||||
![testNamedSet characterIsMember:[@"." characterAtIndex:0]],
|
||||
"Insure defaults set accessors return the correct class");
|
||||
|
||||
testMutableNamedSet1 = [NSMutableCharacterSet letterCharacterSet];
|
||||
testMutableNamedSet2 = [NSMutableCharacterSet letterCharacterSet];
|
||||
[testMutableNamedSet1 invert];
|
||||
PASS([testMutableNamedSet1 characterIsMember:[@"." characterAtIndex:0]] &&
|
||||
![testMutableNamedSet2 characterIsMember:[@"." characterAtIndex:0]],
|
||||
"Test whether we always get a clean mutable set");
|
||||
|
||||
[arp release]; arp = nil;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue