Randall Luecke
7696b30067
Added tests for CPFormatter and Foundation import.
2010-07-11 16:57:17 -05: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
Ross Boucher
da84964a33
Fix two problems with KVC:
...
- valueForKeyPath: looped over individual components, which meant classes couldn't override valueForKeyPath: to do multi-part keys (needed for operators)
- CPArray's valueForKeyPath: implementation was incorrectly parsing the operator if it was a simple key
2010-02-12 12:53:15 -08:00
Alexander Ljungberg and Ross Boucher
f89c2e0ba9
Fixed: CPDates compared equal to nil and CPNull.
2010-02-09 10:59:59 -08:00
Francisco Ryan Tolmasky I
9f847e5a24
Merge branch 'jake' into loader
2010-02-09 01:03:37 -08:00
Alexander Ljungberg and Randall Luecke
a3f9b65501
Implemented [CPDate copy] with unit test. Also whitespace cleanup in CPDate.
2010-02-09 01:57:24 -05:00
Francisco Ryan Tolmasky I
59660032e1
nib2cib fixes.
...
Reviewed by me.
2010-01-29 13:22:44 -08:00
Francisco Ryan Tolmasky I
794d8a754c
Make blendtask work with new system.
...
Reviewed by me.
2010-01-28 16:24:18 -08:00
Ross Boucher
6cbaa35849
Add CPOperation to Foundation
2009-12-23 11:30:10 -05:00
Ross Boucher
a1e24a3f95
Fix a bug where keyPaths which had a component evaluating to self would send notifications containing the wrong keypath in the observation.
...
Includes test case.
2009-12-19 17:47:02 -05:00
Ross Boucher
11cff29916
Merge branch 'jake' of git@github.com:280north/cappuccino into jake
2009-12-19 15:32:52 -05:00
Ross Boucher
f184b9bcc4
Add a few KVO tests around arrays
2009-12-19 15:32:23 -05:00
aburkhalter and tlrobinson
deed92cff7
Toll-free bridge Error to CPException. Add rhinoException in objj_exception for better error reporting.
2009-12-19 03:49:22 -08:00
Francisco Ryan Tolmasky I
403277ed06
Further refined KVO tests.
...
Reviewed by me.
2009-12-11 11:16:17 -08:00
Francisco Ryan Tolmasky I
7edb7266f2
Added test for old dependent values in KVO.
...
Reviewed by me.
2009-12-11 10:54:17 -08:00
Abhinav Gupta and Ross Boucher
0575e96b60
Added commonPrefixWithString method to CPString and tests for it.
2009-11-26 18:13:01 -05:00
Ross Boucher
44fbf8afe2
Add support for encoding dates, courtesy of luddep.
2009-11-24 23:02:38 -05:00
Alexander Ljungberg and Ross Boucher
b7da92d225
CPDate initWithString: now takes proper international format strings like NSDate. Similarly CPDate description generates such strings.
2009-11-24 22:42:02 -05:00
Ross Boucher
ffb08d32ce
Fix an issue with storing 0 in a CPSet. Includes test cases. Closes #337 .
2009-11-24 16:06:32 -05:00
Ross Boucher
229debc2b7
Fixes a bug in testHasSuffix, adds test cases for hasSuffix and hasPrefix.
2009-11-09 13:11:04 +01:00
Seth Buntin and Ross Boucher
891d2a28c1
implement CPException tests
2009-10-22 10:05:58 -07:00
Ross Boucher
f2e95f7e63
Fix a broken import which caused all tests to fail.
2009-10-15 23:27:15 -07:00
Seth Buntin and Ross Boucher
3055522645
implement CPDictionary Tests
2009-10-15 20:53:21 -07:00
Ross Boucher
1c4f11c1d2
A few style fixes for the new CPDataTest
2009-10-15 11:00:30 -07:00
Seth Buntin and Ross Boucher
e57e7cbbc5
remove unused import
2009-10-15 10:54:06 -07:00
Seth Buntin and Ross Boucher
97cfb5c1f9
clean up to follow style guidelines
2009-10-15 10:53:58 -07:00
Seth Buntin and Ross Boucher
9d7ba990a8
add dataWithPlistObject test CPDataTest
2009-10-15 10:53:52 -07:00