From e5efec6c452bd5e544d8007c8920f439c14d3b10 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sun, 11 Jun 2023 23:03:09 +0800 Subject: [PATCH] ... --- tests/80_easing.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/80_easing.py 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))