cacaodev
2a95523577
CPPredicate & CPExpression changes:
...
Parsing: fixed typos in built-in function names, fixed support for [FIRST], [LAST], [INDEX]
Fixed aggregates {exp1,exp2}
Fixed -expressionForFunction:selectorName:arguments:
built-in functions are now class methods
Cleaned a lot of code in built-in functions
EvaluatedObjectExpression is now a singleton
Merged inserset/minus/union Set into one file
Deleted unused expression subclasses : expression_operator and expression_assignement
Added CPCoding methods and changed key names to match Cocoa
Made KeyPathExpresion a subclass of FunctionExpression like in Cocoa
Tests
2010-10-27 00:57:31 +02:00
cacaodev
c735399ca5
CPPredicate: Fix for fail when parsing empty quotes. With Tests.
2010-10-23 09:26:12 +02:00
cacaodev
275f89a340
CPPredicate: parsing 'BETWEEN' or 'CONTAINS' keywords now generates predicates with their corresponding operators. Some code style.
...
CPComparisonPredicate: fixed typo in 'between' operator evaluation, simplified 'contains' and 'in' evaluation.
Added tests in CPPredicateTest for theses fixes.
2010-10-22 22:13:57 +02:00
Brian Donovan and Ross Boucher
b5d0054f94
-[CPIndexSet shiftIndexesStartingAtIndex:by:] did not properly adjust count.
...
When clipping a range (i.e. some or all of it went below the lower bound) as a result of
calling shiftIndexesStartingAtIndex:by: with a negative delta, the CPIndexSet did not adjust
the index count, which caused calls to -lastIndex to fail.
This caused -[CPArrayController removeObject:] to fail when the object removed was at index 0.
2010-10-13 18:20:20 -07:00
Francisco Ryan Tolmasky I
d3c86aeefd
Cleanup for previous undo patch and added a few test cases.
...
Reviewed by me.
2010-09-18 21:47:43 -07:00
Alexander Ljungberg
f2f737fcd3
Merge remote branch 'hammerdr/subclassable'
2010-09-10 20:18:30 -04:00
Arkadiusz Młynarczyk and Alexander Ljungberg
ddfac8d717
- moved componentsSeparatedByCharactersInSet: into CPCharacterSetAdditions CPString category
...
- added tests for componentsSeparatedByCharactersInSet:
- ensured Cocoa compatibility of componentsSeparatedByCharactersInSet:
- added new test for CPString boolValue
- fixed CPString boolValue (" ++01" should return NO as in Cocoa, previously it returned YES)
2010-09-10 18:58:18 -04:00
Derek Hammer
7f7571a2d1
Adding tests to verify the behavior of CPDictionary when subclassed.
2010-09-06 11:44:27 -05: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
Tom Robinson
6ce45d32da
Add comparison test for native sorting.
2010-08-13 15:40:33 -07:00
Alexander Ljungberg
6afe22f351
Merge remote branch 'klaaspieter/fix/784-cparraycontroller-selection'
2010-08-13 14:00:27 -04:00
Randall Luecke
22c481ff27
Implemented allKeysForObject: in CPDictionary with tests.
2010-08-12 14:18:45 -05:00
Randall Luecke
1e6f6879ff
Run CPArrayPerformanceTest with jake test.
2010-08-11 23:17:38 -05:00
cacaodev and Alexander Ljungberg
750cd3c258
CPComparisonPredicate :
...
Fixed a bug where *lhs custom_selector: nil* was always returning false.
Test nil on left and/or right with some operators.
2010-08-05 16:18:18 -04:00
Alexander Ljungberg
df358ccc42
Fix failing CPPredicate unit tests: comment out test for unimplemented expressionForSubquery, finish CPExpression_unionset and fix typo in CPExpression expressionForIntersectSet.
2010-08-04 21:27:01 -04:00
Alexander Ljungberg
1b5efdfc5b
Fixed with CPPredicate tests: [CPArray arrayWithObjects] don't take a final nil anymore in Cappuccino.
2010-08-04 20:50:55 -04:00
cacaodev and Alexander Ljungberg
974cf64e1d
CPPredicate &al implementation. OJUnit test.
2010-08-04 19:53:44 -04:00
Alexander Ljungberg
4ea0d4d043
CPNull is equal to CPNull. Unit test included.
2010-08-04 16:43:04 -04:00
Francisco Ryan Tolmasky I
cea663f4eb
Fix for isEqual: not being implemented in CPIndexSet.
...
Closes #785 .
Reviewed by rossco.
2010-07-28 16:17:54 -07:00
Aparajita Fishman and Ross Boucher
8ecac8d03c
Fix and test case for issue #746
2010-07-28 16:12:02 -07:00
Aparajita Fishman and Ross Boucher
cb7f60aba8
Added -indexOfObjectPassingTest: and related methods
2010-07-28 15:57:47 -07:00
Klaas Pieter Annema
e066228015
Merge branch 'cpindexset-isequal' into arraycontroller-fixes
2010-07-27 09:23:00 +02:00
Randall Luecke
7696b30067
Added tests for CPFormatter and Foundation import.
2010-07-11 16:57:17 -05:00
Klaas Pieter Annema
6b132c4d3b
added check for nil in CPIndexSet isEqual
2010-06-30 11:15:38 +02:00
Klaas Pieter Annema
10df31cbf9
made isEqual: work on CPIndexSet and updated unit tests
2010-06-22 07:47:30 +02:00
Alexander Ljungberg and Ross Boucher
51825db716
Fixed: [CPDate description] did not generate a correct date for users in timezones with a negative timezone offset.
2010-06-10 10:49:49 -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
cacaodev and Ross Boucher
0062caafdf
CPObject -implementsSelector:
2010-05-26 10:06:49 -07:00
Ross Boucher
be26ab9201
CPDictionary is now KVO compliant.
2010-05-24 10:09:39 -07:00
Alexander Ljungberg and Ross Boucher
791e65c88b
Improved CPArray sortUsingDescriptors performance by about 3% by pulling the descriptor count out of the sort function.
2010-05-15 12:32:19 -07: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
Alexander Ljungberg and Ross Boucher
0f5dd9d469
[CPSet description] with unit test.
2010-04-21 15:48:39 -07:00
Alexander Ljungberg and Ross Boucher
5838f1aec8
Implemented CPCoding for CPNull.
2010-04-21 15:36:29 -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
Alexander Ljungberg and Ross Boucher
068cdb9817
CPNull valueForKey:X returns CPNull for any value of X, paralleling [nil valueForKey:X]. Verified against Cocoa through empirical testing.
2010-03-31 13:17:42 -07:00
Ross Boucher
74dabcae8a
Update the CPDictionary test suite.
2010-03-27 13:52:44 -07:00
Emmanuel Maillard and Ross Boucher
1ff873e170
- add tests for pathExtension and stringByDeletingPathExtension
2010-03-27 13:22:36 -07:00
Ross Boucher
ef4c108b9e
Date test wasn't accurately accounting for daylight savings time.
2010-03-22 15:08:29 -07:00
Alan Rogers and Ross Boucher
35b62ca53f
Updated test and fix for gh issue #539
2010-03-22 14:53:07 -07:00
Alan Rogers and Ross Boucher
c8f3445fa6
Adding a unit test to verify fix to +[CPDictionary dictionaryWithJSObject:(JSObject)object recursively:(BOOL)recursively]
2010-03-22 14:52:49 -07:00
Andrew Burkhalter and Ross Boucher
dc9d79bc3d
Adding failing test demonstrating that CPIndexSet throws with negative delta (e.g. shifting indexes at starting point upwards). Simple downward shift example included and working successfully.
...
Misc method reorganization with test suite so it's a bit more intuitive.
2010-03-12 18:50:35 -08:00
Francisco Ryan Tolmasky I
89bd5f5b93
Fixed remaining failing CPURL tests and removed prints from CFURL tests.
...
Reviewed by me.
2010-03-06 12:10:57 -08:00
Ross Boucher
e034abef82
Add a test for the initWithItems:copy: fix.
2010-03-03 20:38:56 -08:00
Tom Robinson
7defbce1dd
Fix more incorrect type annotations
2010-02-24 22:45:34 -08:00
Francisco Ryan Tolmasky I
272f938f2e
Fix for CPData naming issues, added test cases, and fixed isEqual: for CPDictionary.
...
Reviewed by me.
2010-02-21 23:29:41 -08:00
Ross Boucher
c37c80771c
Fix broken tests with CPData.
2010-02-12 14:17:58 -08:00
Francisco Ryan Tolmasky I
3a35ab449b
Fixed failing KVO tests.
...
Reviewed by me.
2010-02-12 13:46:26 -08:00