diff --git a/tests/80_easing.py b/tests/80_easing.py new file mode 100644 index 00000000..ee5cede5 --- /dev/null +++ b/tests/80_easing.py @@ -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))