mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-24 16:24:11 +03:00
Test GimpGradientFile.sine()
This commit is contained in:
parent
08499d3547
commit
0a3b25ef9e
|
@ -60,6 +60,17 @@ class TestImage(PillowTestCase):
|
|||
# Assert
|
||||
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):
|
||||
# Arrange
|
||||
middle = 0.5
|
||||
|
|
Loading…
Reference in New Issue
Block a user