Skip to content

Commit

Permalink
cover
Browse files Browse the repository at this point in the history
  • Loading branch information
nullice committed Apr 7, 2017
1 parent 348b28c commit a79851c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ test('Set IchiColor.r/g/b', t =>
});


test('Set IchiColor.rgb', t =>
{
var c = IchiColor()
c.rgb = "rgb(255, 0, 34)"

testColor_c_1(t, c)
});


test('Set IchiColor.hexRRGGBB', t =>
{
var c = IchiColor()
Expand Down Expand Up @@ -109,6 +118,10 @@ test('Set IchiColor.hexAARRGGBB', t =>
c.set("#af02")
t.is(c.argb,"#aaff0022")

c.set("#a3020203")
t.is(c.argb,"#a3020203")


var c = IchiColor()
c.set("#af02")
t.is(c.alpha,0.667)
Expand Down Expand Up @@ -310,6 +323,8 @@ test('Conv IchiColor.hsl', t =>
TSET_scan_RGBList('Conv IchiColor.hsl', test_item, rgbList, t, c)
// TSET_scan_allRGB('Conv IchiColor.hsl', test_item, t, c)


t.is( c.set({h: 360, s: 10, l:10}).int,1840919 )
})


Expand Down

0 comments on commit a79851c

Please sign in to comment.