2021-05-14 09:44:28 +02:00
|
|
|
"""test of core functions """
|
|
|
|
|
|
|
|
import floatimg
|
|
|
|
|
|
|
|
def test_maxvaalue():
|
|
|
|
width = 5
|
|
|
|
height = 5
|
|
|
|
|
|
|
|
img = floatimg.create_rgb(width, height)
|
|
|
|
color = (255.0, 255.0, 255.0)
|
|
|
|
img.put(2,2, color)
|
2021-05-16 11:45:00 +02:00
|
|
|
assert img.maxvalue() == 255.0
|