mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 21:17:03 +00:00
15 lines
302 B
Plaintext
15 lines
302 B
Plaintext
@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
|