mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
Test GimpGradientFile.sine()
This commit is contained in:
parent
08499d3547
commit
0a3b25ef9e
|
@ -60,6 +60,17 @@ class TestImage(PillowTestCase):
|
||||||
# Assert
|
# Assert
|
||||||
self.assertEqual(ret, 0.75)
|
self.assertEqual(ret, 0.75)
|
||||||
|
|
||||||
|
def test_sine(self):
|
||||||
|
# Arrange
|
||||||
|
middle = 0.5
|
||||||
|
pos = 0.75
|
||||||
|
|
||||||
|
# Act
|
||||||
|
ret = GimpGradientFile.sine(middle, pos)
|
||||||
|
|
||||||
|
# Assert
|
||||||
|
self.assertEqual(ret, 0.8535533905932737)
|
||||||
|
|
||||||
def test_sphere_increasing(self):
|
def test_sphere_increasing(self):
|
||||||
# Arrange
|
# Arrange
|
||||||
middle = 0.5
|
middle = 0.5
|
||||||
|
|
Loading…
Reference in New Issue
Block a user