def test_rgb_to_hsl_part_4():
 assert (rgb_to_hsl(255, 0, 0) == (0, 100, 50))
 assert (rgb_to_hsl(255, 51, 0) == (12, 100, 50))
 assert (rgb_to_hsl(255, 102, 0) == (24, 100, 50))
 assert (rgb_to_hsl(255, 153, 0) == (36, 100, 50))
 assert (rgb_to_hsl(255, 204, 0) == (48, 100, 50))
 assert (rgb_to_hsl(255, 255, 0) == (60, 100, 50))
 assert (rgb_to_hsl(204, 255, 0) == (72, 100, 50))
 assert (rgb_to_hsl(153, 255, 0) == (84, 100, 50))
 assert (rgb_to_hsl(102, 255, 0) == (96, 100, 50))
 assert (rgb_to_hsl(51, 255, 0) == (108, 100, 50))
 assert (rgb_to_hsl(0, 255, 0) == (120, 100, 50))

def test_rgb_to_hsl_part_4 ( ) : assert ( rgb_to_hsl ( 255 , 0 , 0 ) == ( 0 , 100 , 50 ) ) assert ( rgb_to_hsl ( 255 , 51 , 0 ) == ( 12 , 100 , 50 ) ) assert ( rgb_to_hsl ( 255 , 102 , 0 ) == ( 24 , 100 , 50 ) ) assert ( rgb_to_hsl ( 255 , 153 , 0 ) == ( 36 , 100 , 50 ) ) assert ( rgb_to_hsl ( 255 , 204 , 0 ) == ( 48 , 100 , 50 ) ) assert ( rgb_to_hsl ( 255 , 255 , 0 ) == ( 60 , 100 , 50 ) ) assert ( rgb_to_hsl ( 204 , 255 , 0 ) == ( 72 , 100 , 50 ) ) assert ( rgb_to_hsl ( 153 , 255 , 0 ) == ( 84 , 100 , 50 ) ) assert ( rgb_to_hsl ( 102 , 255 , 0 ) == ( 96 , 100 , 50 ) ) assert ( rgb_to_hsl ( 51 , 255 , 0 ) == ( 108 , 100 , 50 ) ) assert ( rgb_to_hsl ( 0 , 255 , 0 ) == ( 120 , 100 , 50 ) )
test rgb to hsl color function .