mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-17 16:11:28 +00:00
Added a test for hex conversions in CPColor
This commit is contained in:
committed by
Klaas Pieter Annema
parent
d52cbb7077
commit
bc9645aa4f
@@ -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