Alexander Ljungberg
9eee7a214e
Refs #1630 . Add test.
2012-07-23 15:35:52 +02:00
Martin Carlberg
e265d09034
Fixed sortUsingDescriptors: so it can handle sort descriptors
...
with a key path instead of just a key.
Also added a test case for this.
2012-07-06 20:52:33 +02:00
Aparajita Fishman
593f3c2109
Fixed the method names
2012-07-04 17:03:53 -04:00
Aparajita Fishman
0f5a6b4e5e
Added CPArray -indexesOfObjectPassingTest methods
2012-07-04 15:41:45 -04:00
Martin Carlberg
d7ff93f7f2
SortUsingDescriptors: Using the selector in the descriptor instead of always using compare:
2012-06-08 19:48:39 +02:00
Alexander Ljungberg
bc370a2a5a
Merge pull request #1538 from mrcarlberg/cappuccino
...
---
Dont you hate when your logs of arrays and dictionaries display [Object object] when you have JavaScript objects in them. Now with this patch all JavaScript objects will be display with all attributes in a nice good looking way. Log CGRect, CGPoint and other JavaScript objects withour any hassle anymore. For example: console.log([myRect]);
2012-05-14 21:12:17 +01:00
Alexander Ljungberg
3a0068186a
Implement stopping support for CPArray enumerateObjectsUsingBlock:.
2012-03-23 00:34:09 +00:00
Alexander Ljungberg
e19a782954
Test CPArray enumerateObjectsUsingBlock:.
2012-03-23 00:26:05 +00:00
Klaas Pieter Annema
4418b2403f
add test case for firstObject
2011-03-28 15:23:03 +02:00
Francisco Ryan Tolmasky I
29301f440e
Fixed a few bugs in CPArray and added many new tests for CPArray.
...
Reviewed by me.
2011-01-11 10:12:26 -08:00
Alexander Ljungberg
be71d957e1
Fixed: indexOfObject:inSortedRange: searched 1 index too far when a range was applied.
2011-01-04 17:00:48 -03:00
Alexander Ljungberg
8e0b3a5df3
Test indexOfObject:inSortedRange: with out of range insertion point.
2011-01-04 15:38:54 -03:00
Alexander Ljungberg
9954a75cdd
Fixed array test arrayByReversingArray. More indexOfObject:inSortedRange:... tests.
2011-01-04 15:30:02 -03:00
Alexander Ljungberg
6ee7964fa6
Cleanup.
2011-01-04 13:42:00 -03:00
Ilya Kulakov and Alexander Ljungberg
db6608571a
Refs #1071 . indexOfObject:inSortedRange:options:usingComparator is incorrectly implemented.
...
Add more tests to cover more features of the indexOfObject:inSortedRange:options:usingComparator method
2011-01-04 13:37:06 -03:00
Francisco Ryan Tolmasky I
e45ed19dc7
Fix remaining failing tests and add indexOfObject:inSortedRange:options:usingComparator:, and removed non-standard methods:
...
- indexOfObject:sortedBySelector:
- indexOfObject:sortedByFunction:
- indexOfObject:sortedByDescriptors:
- indexOfObject:sortedByFunction:context:
Reviewed by me.
2010-12-25 21:10:32 -08:00
Francisco Ryan Tolmasky I
37931f08b5
First pass at CPArray class cluster.
...
Reviewed by me.
2010-12-25 16:07:30 -08:00
Francisco Ryan Tolmasky I
d69f46f7ee
More capp_linting.
...
Reviewed by me.
2010-12-09 13:45:29 -08:00
Alexander Ljungberg
bdcef193b7
Minor CPArrayTest cleanup.
2010-08-31 23:45:35 -04:00
Derek Hammer and Alexander Ljungberg
d377790e9d
Adding some tests to verify behavior.
2010-08-31 23:41:51 -04:00
Aparajita Fishman and Ross Boucher
cb7f60aba8
Added -indexOfObjectPassingTest: and related methods
2010-07-28 15:57:47 -07:00
Alexander Ljungberg
f2bb27dc32
Fixed: [CPArray isEqualToArray:nil] threw an exception instead of returning NO.
2010-05-26 19:54:20 -04:00
Alexander Ljungberg
ed9c6d7959
Added reverse sort tests for CPArray insertObject:inArraySortedByDescriptors:.
2010-05-26 19:11:58 -04:00
Ross Boucher
2453e403ef
Make nil a completely valid object in a CPArray.
...
Closes #630 .
2010-04-29 12:04:44 -07:00
Ross Boucher
6662fabcb8
Tests for the bug exposed in the previous cparray commit.
2010-04-23 16:43:22 -07:00
Ross Boucher
b3ef31ad05
Fixed: [CPArray isEqualToArray:nil] threw an exception instead of returning NO.
...
Conflicts:
Foundation/CPArray.j
Tests/Foundation/CPArrayTest.j
2010-04-09 14:51:46 -07:00
Ross Boucher
e034abef82
Add a test for the initWithItems:copy: fix.
2010-03-03 20:38:56 -08:00
Francisco Ryan Tolmasky I
a5a43de26e
Fix for objectAtIndex: throwing out of range exceptions.
...
Closes #105 .
Reviewed by me.
2009-07-08 11:52:47 -07:00
Ross Boucher
adde315e2d
Fix a bug in [CPArray indexOfObject:sortedByDesciptors:], add a matching test.
2009-06-21 16:16:45 -07:00
Jari Bakken and Ross Boucher
869db920a9
Add [CPArrayTest testRemoveObjectsAtIndexes]
2009-01-15 19:58:59 -08:00
Francisco Ryan Tolmasky I
e1d57aac3b
Fix for broken insertObjects:atIndexes: and tests and isEqual.
...
[#136 state:resolved]
Reviewed by me.
2008-11-13 16:55:33 -08:00
Tom Robinson
02b4187742
CPArrayTest
2008-10-05 18:47:47 -07:00