package de.otto.jlineup.image;

import org.junit.Test;

import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.*;

public class LABTest {

    @Test
    public void shouldCalculateCIEDE2000() {

        LAB lab1 = LAB.fromRGB(55,44,33, 0);
        LAB lab2 = LAB.fromRGB(66,55,44, 0);

        double v = LAB.ciede2000(lab1, lab2);

        assertThat(v, is(3.533443206558854d));
    }
}
@@ -115,22 +115,41 @@
 org.
-junit.Assert.*
+hamcrest.MatcherAssert.assertThat
 ;%0A%0Ap
@@ -337,16 +337,27 @@
 ble v = 
+Math.round(
 LAB.cied
@@ -373,16 +373,55 @@
 1, lab2)
+ * Math.pow(10, 12)) / Math.pow(10, 12)
 ;%0A%0A     
@@ -457,13 +457,9 @@
 0655
-8854d
+9
 ));%0A

Fix precision issue on MacOS