Added a test for hex conversions in CPColor

This commit is contained in:
Sami Samhuri
2010-09-10 10:02:21 +02:00
committed by Klaas Pieter Annema
parent d52cbb7077
commit bc9645aa4f
+14
View File
@@ -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