mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-20 07:15:01 +00:00
1 parent
0f53ceda30
commit
b0babdb7bb
1 file changed
+7
-7
@@ -470,16 +470,16 @@
|
||||
[self assert:[5, 4, 4, 3, 2, 2, 1, 1, 1, 1] equals:target];
|
||||
}
|
||||
|
||||
- (void)testThatCPArrayDoesSortCorrectWithNilAndCPNull
|
||||
- (void)testThatCPArrayDoesSortCorrectlyWithNilAndCPNull
|
||||
{
|
||||
var descriptors = [[CPSortDescriptor sortDescriptorWithKey:@"number" ascending:NO]],
|
||||
target = [
|
||||
[[CPPrettyObject alloc] initWithValue:@"a" number:nil],
|
||||
[[CPPrettyObject alloc] initWithValue:@"a" number:[CPNull null]],
|
||||
[[CPPrettyObject alloc] initWithValue:@"a" number:@"Objective-J"],
|
||||
[[CPPrettyObject alloc] initWithValue:@"a" number:[CPNull null]],
|
||||
[[CPPrettyObject alloc] initWithValue:@"a" number:nil],
|
||||
];
|
||||
[[CPPrettyObject alloc] initWithValue:@"a" number:nil],
|
||||
[[CPPrettyObject alloc] initWithValue:@"a" number:[CPNull null]],
|
||||
[[CPPrettyObject alloc] initWithValue:@"a" number:@"Objective-J"],
|
||||
[[CPPrettyObject alloc] initWithValue:@"a" number:[CPNull null]],
|
||||
[[CPPrettyObject alloc] initWithValue:@"a" number:nil],
|
||||
];
|
||||
|
||||
[target sortUsingDescriptors:descriptors];
|
||||
|
||||
|
||||
Reference in new issue
Block a user