88
89
90
91
92
93
94
95
96
|
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];
}
|
>
>
>
>
|
88
89
90
91
92
93
94
95
96
97
98
99
100
|
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])
a[0] = [OFArray arrayWithObjects: @"foo", @"bar", @"baz", nil];
TEST(@"-[componentsJoinedByString:]",
[[a[0] componentsJoinedByString: @" "] isEqual: @"foo bar baz"])
[pool drain];
}
|