Permalink
Browse files

update tests for hsl->hsv conversion

  • Loading branch information...
harthur committed Oct 25, 2011
1 parent 30060f1 commit f8335a1103b3aac0c235538008007d91a168d066
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/basic.js
View
@@ -9,7 +9,7 @@ assert.deepEqual(convert.rgb2xyz([92, 191, 84]), [25, 40, 15]);
assert.deepEqual(convert.rgb2lab([92, 191, 84]), [70, -50, 45]);
assert.deepEqual(convert.hsl2rgb([96, 48, 59]), [140, 201, 100]);
-assert.deepEqual(convert.hsl2hsv([96, 48, 59]), [96, 39, 79]); // colorpicker says [96,50,79]
+assert.deepEqual(convert.hsl2hsv([96, 48, 59]), [96, 50, 79]); // colorpicker says [96,50,79]
assert.deepEqual(convert.hsl2cmyk([96, 48, 59]), [30, 0, 50, 21]);
assert.deepEqual(convert.hsl2keyword([240, 100, 50]), "blue");
@@ -58,7 +58,7 @@ assert.deepEqual(round(convert.keyword2rgbRaw("blue")), [0, 0, 255]);
assert.deepEqual(convert.rgb2keywordRaw([255, 228, 196]), "bisque");
assert.deepEqual(round(convert.hsv2hslRaw([96, 50, 78])), [96, 47, 58.5]);
-assert.deepEqual(round(convert.hsl2hsvRaw([96, 48, 59])), [96, 39.4, 78.7]);
+assert.deepEqual(round(convert.hsl2hsvRaw([96, 48, 59])), [96, 50, 78.7]);
assert.deepEqual(round(convert.xyz2rgbRaw([25, 40, 15])), [97.4, 189.9, 85]);
assert.deepEqual(round(convert.rgb2xyzRaw([92, 191, 84])), [24.6, 40.2, 14.8]);

0 comments on commit f8335a1

Please sign in to comment.