@import @import @import @implementation CPArrayControllerPerformance : OJTestCase - (void)testRearrangeObjects { var ELEMENTS = 200, REPEATS = 50, ac = [CPArrayController new], array = []; for (var i=0; i= last) [self fail:"array values should be descending (position: "+j+")"]; last = sorted[j]; } } var end = (new Date).getTime(); CPLog.warn("testRearrangeObjects: "+(end-start)+"ms"); } @end @implementation Sortable : CPObject { int a @accessors; int b @accessors; } @end