def test_rgb_to_hsl_part_0():
 assert (rgb_to_hsl(255, 0, 0) == (0, 100, 50))
 assert (rgb_to_hsl(255, 255, 0) == (60, 100, 50))
 assert (rgb_to_hsl(0, 255, 0) == (120, 100, 50))
 assert (rgb_to_hsl(0, 255, 255) == (180, 100, 50))
 assert (rgb_to_hsl(0, 0, 255) == (240, 100, 50))
 assert (rgb_to_hsl(255, 0, 255) == (300, 100, 50))

def test_rgb_to_hsl_part_0 ( ) : assert ( rgb_to_hsl ( 255 , 0 , 0 ) == ( 0 , 100 , 50 ) ) assert ( rgb_to_hsl ( 255 , 255 , 0 ) == ( 60 , 100 , 50 ) ) assert ( rgb_to_hsl ( 0 , 255 , 0 ) == ( 120 , 100 , 50 ) ) assert ( rgb_to_hsl ( 0 , 255 , 255 ) == ( 180 , 100 , 50 ) ) assert ( rgb_to_hsl ( 0 , 0 , 255 ) == ( 240 , 100 , 50 ) ) assert ( rgb_to_hsl ( 255 , 0 , 255 ) == ( 300 , 100 , 50 ) )
test rgb to hsl color function .