maxvalue binding

This commit is contained in:
2021-05-14 09:44:28 +02:00
parent fbea9488f0
commit 4b57a41705
2 changed files with 20 additions and 0 deletions

12
tests/maths.py Normal file
View File

@@ -0,0 +1,12 @@
"""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)
assert img.maxvalue() == 255.0ls