mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-05 16:42:58 +00:00
add test case for firstObject
This commit is contained in:
1 parent
42c60913c6
commit
4418b2403f
1 file changed
+8
@@ -51,6 +51,14 @@
|
||||
[self assert:[[arrayClass arrayWithObjects:0, 1, nil, 2, nil] count] same:2];
|
||||
}
|
||||
|
||||
- (void)test_firstObject
|
||||
{
|
||||
var arrayClass = [[self class] arrayClass];
|
||||
|
||||
[self assert:[[arrayClass array] firstObject] same:nil];
|
||||
[self assert:[[arrayClass arrayWithObjects:0, 1, 2] firstObject] same:0];
|
||||
}
|
||||
|
||||
- (void)test_lastObject
|
||||
{
|
||||
var arrayClass = [[self class] arrayClass];
|
||||
|
||||
Reference in new issue
Block a user