mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-08 01:48:04 +00:00
Added a test for hex conversions in CPColor
This commit is contained in:
1 parent
d52cbb7077
commit
bc9645aa4f
1 file changed
+14
@@ -0,0 +1,14 @@
|
||||
@import <AppKit/AppKit.j>
|
||||
|
||||
@implementation CPColorTest : OJTestCase
|
||||
{
|
||||
}
|
||||
|
||||
- (void)testHexStringConversion
|
||||
{
|
||||
var colors = ['000000', '7E8EAB', 'FFFFFF'];
|
||||
for (var i = 0; i < colors.length; ++i)
|
||||
[self assert: colors[i] equals: [[CPColor colorWithHexString: colors[i]] hexString]];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user