cocos2d-objc
cocos2d-objc copied to clipboard
Unit tests for CCColor
Catches the problem that https://github.com/cocos2d/cocos2d-objc/pull/1318 fixes And provides a starting point for further tests. Major current functionality not covered is:
- (CCColor*) initWithHue:(float)hue saturation:(float)saturation brightness:(float)brightness alpha:(float)alpha
and none of the internal color space workings are tested.
They also only do platform specific stuff for iOS - so the NSColor for Mac isn't tested, and the CGColor stuff on non-iOS wont run.