Ejemplo n.º 1
0
 def test_with_pixel_below_52(self):
     self.assertEqual(' ', match_brightness_to_character(51))
Ejemplo n.º 2
0
 def test_with_pixel_0(self):
     self.assertEqual(' ', match_brightness_to_character(0))
Ejemplo n.º 3
0
 def test_with_pixel_above_204(self):
     self.assertEqual('█', match_brightness_to_character(255))
Ejemplo n.º 4
0
 def test_with_pixel_between_153_and_203(self):
     self.assertEqual('▓', match_brightness_to_character(202))
Ejemplo n.º 5
0
 def test_with_pixel_between_102_and_152(self):
     self.assertEqual('▒', match_brightness_to_character(151))
Ejemplo n.º 6
0
 def test_with_pixel_between_52_and_101(self):
     self.assertEqual('░', match_brightness_to_character(52))