91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
[[MyObj description] isEqual: @"MyObj"])
o = [[[OFObject alloc] init] autorelease];
m = [[[MyObj alloc] init] autorelease];
TEST(@"-[description]",
[[o description] isEqual:
([OFString stringWithFormat: @"<OFObject: %p>", o])] &&
[[m description] isEqual:
([OFString stringWithFormat: @"<MyObj: %p>", m])])
[pool drain];
}
@end
|
|
|
|
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
[[MyObj description] isEqual: @"MyObj"])
o = [[[OFObject alloc] init] autorelease];
m = [[[MyObj alloc] init] autorelease];
TEST(@"-[description]",
[[o description] isEqual:
[OFString stringWithFormat: @"<OFObject: %p>", o]] &&
[[m description] isEqual:
[OFString stringWithFormat: @"<MyObj: %p>", m]])
[pool drain];
}
@end
|