mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 10:11:03 +00:00
21 lines
357 B
Mathematica
21 lines
357 B
Mathematica
|
#import "generic.h"
|
||
|
|
||
|
@interface NSObject (PretendToBeNSString)
|
||
|
- (NSUInteger)length;
|
||
|
@end
|
||
|
|
||
|
@implementation NSObject(TestAdditions)
|
||
|
-(BOOL)testEquals:(id)anObject
|
||
|
{
|
||
|
return ([self isEqual:anObject] && [anObject isEqual:self]);
|
||
|
}
|
||
|
- (int) length
|
||
|
{
|
||
|
return 0;
|
||
|
}
|
||
|
-(BOOL)testForString
|
||
|
{
|
||
|
return ([self isKindOfClass:[NSString class]] && [self length]);
|
||
|
}
|
||
|
@end
|