8
h = lena(mode).histogram()
9
return len(h), min(h), max(h)
11
assert_equal(histogram("1"), (256, 0, 8872))
12
assert_equal(histogram("L"), (256, 0, 199))
13
assert_equal(histogram("I"), (256, 0, 199))
14
assert_equal(histogram("F"), (256, 0, 199))
15
assert_equal(histogram("P"), (256, 0, 2912))
16
assert_equal(histogram("RGB"), (768, 0, 285))
17
assert_equal(histogram("RGBA"), (1024, 0, 16384))
18
assert_equal(histogram("CMYK"), (1024, 0, 16384))
19
assert_equal(histogram("YCbCr"), (768, 0, 741))