URL:
https://svn.lrde.epita.fr/svn/oln/trunk/milena
ChangeLog:
2009-09-14 Fabien Freling <fabien.freling(a)lrde.epita.fr>
Update RGB to HSL test, correct luminance values with fractions.
* tests/fun/v2v/rgb_to_hsl.cc: Update luminance values with fractions.
---
rgb_to_hsl.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: trunk/milena/tests/fun/v2v/rgb_to_hsl.cc
===================================================================
--- trunk/milena/tests/fun/v2v/rgb_to_hsl.cc (revision 4475)
+++ trunk/milena/tests/fun/v2v/rgb_to_hsl.cc (revision 4476)
@@ -44,7 +44,7 @@
{ rgb8(128,128,128), rgb8(90,90, 90) } };
hsl_f ref[][2] = { { hsl_f(0,0,0), hsl_f(0,0,1.0) },
- { hsl_f(0,0,0.5), hsl_f(0,0,0.35) } };
+ { hsl_f(0,0,128.0 / 255.0), hsl_f(0,0,90.0 / 255.0) } };
int main()
{