mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
...
This commit is contained in:
parent
577f7b4d0e
commit
e5efec6c45
12
tests/80_easing.py
Normal file
12
tests/80_easing.py
Normal file
@ -0,0 +1,12 @@
|
||||
import easing
|
||||
|
||||
def validate(val):
|
||||
assert -2 <= val <= 2.0
|
||||
assert isinstance(val, float)
|
||||
|
||||
for k, f in easing.__dict__.items():
|
||||
if k.startswith("Ease"):
|
||||
validate(f(0.2))
|
||||
validate(f(0.5))
|
||||
validate(f(0.8))
|
||||
validate(f(1.0))
|
Loading…
x
Reference in New Issue
Block a user