def test_xyz_tolab(self): assert_items_almost_equal( (66.9518, 0.4308, 0.7397), grapefruit.xyz_to_lab(0.488941, 0.365682, 0.0448137)) assert_items_almost_equal( (66.9518, 0.4117, 0.6728), grapefruit.xyz_to_lab(0.488941, 0.365682, 0.0448137, grapefruit.WHITE_REFERENCE["std_D50"]))
def test_xyz_tolab(self): assert_items_almost_equal((66.9518, 0.4308, 0.7397), grapefruit.xyz_to_lab(0.488941, 0.365682, 0.0448137)) assert_items_almost_equal((66.9518, 0.4117, 0.6728), grapefruit.xyz_to_lab(0.488941, 0.365682, 0.0448137, grapefruit.WHITE_REFERENCE["std_D50"]))
def test_xyz_tolab_tuple(self): assert_items_almost_equal((66.9518, 0.4308, 0.7397), grapefruit.xyz_to_lab((0.488941, 0.365682, 0.0448137)))
def test_xyz_tolab_tuple(self): assert_items_almost_equal((66.9518, 0.4308, 0.7397), grapefruit.xyz_to_lab( (0.488941, 0.365682, 0.0448137)))