[K/N][Tests] Migrate objcSmoke & objcTests tests
^KT-61259
This commit is contained in:
committed by
Space Team
parent
58f7dd1c83
commit
524f0d335e
@@ -0,0 +1,32 @@
|
||||
#import "customString.h"
|
||||
|
||||
BOOL customStringDeallocated = NO;
|
||||
|
||||
@implementation CustomString {
|
||||
NSString* delegate;
|
||||
}
|
||||
|
||||
- (instancetype)initWithValue:(int)value {
|
||||
if (self = [super init]) {
|
||||
self->delegate = @(value).description;
|
||||
self.value = value;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (unichar)characterAtIndex:(NSUInteger)index {
|
||||
return [self->delegate characterAtIndex:index];
|
||||
}
|
||||
|
||||
- (NSUInteger)length {
|
||||
return self->delegate.length;
|
||||
}
|
||||
|
||||
- (id)copyWithZone:(NSZone *)zone {
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc {
|
||||
customStringDeallocated = YES;
|
||||
}
|
||||
@end
|
||||
Reference in New Issue
Block a user