72
73
74
75
76
77
78
79
80
|
EXPECT_EXCEPTION(@"Detect out of range in -[objectAtIndex:]",
OFOutOfRangeException, [a[0] objectAtIndex: [a[0] count]])
EXPECT_EXCEPTION(@"Detect out of range in -[removeNItems:]",
OFOutOfRangeException, [a[0] removeNObjects: [a[0] count] + 1])
[pool release];
}
|
|
|
72
73
74
75
76
77
78
79
80
|
EXPECT_EXCEPTION(@"Detect out of range in -[objectAtIndex:]",
OFOutOfRangeException, [a[0] objectAtIndex: [a[0] count]])
EXPECT_EXCEPTION(@"Detect out of range in -[removeNItems:]",
OFOutOfRangeException, [a[0] removeNObjects: [a[0] count] + 1])
[pool drain];
}
|