def test_linear_to_s_log2(self): """ Tests :func:`colour.models.log.linear_to_s_log2` definition. """ self.assertAlmostEqual( linear_to_s_log2(0), 0.088251291513445795, places=7) self.assertAlmostEqual( linear_to_s_log2(0.18), 0.38497081592867027, places=7) self.assertAlmostEqual( linear_to_s_log2(1), 0.63855168462253165, places=7)