Skip to content

Commit

Permalink
tuple init test for composition
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarx committed Feb 2, 2023
1 parent c39e5e7 commit 63d02a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

setup(
name='keyframed',
version='0.2.7',
version='0.2.8',
author='David Marx',
long_description=README,
long_description_content_type='text/markdown',
Expand Down
3 changes: 3 additions & 0 deletions tests/test_composition.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ def test_composition_direct():
assert abs(additive[4] - 5.25) < EPS
assert abs(multiplicative[4] - 3.25) < EPS

additive2 = Composition((Curve(kfs), SmoothCurve(kfs), Curve({0:1, 15:15})), reduction='sum')
assert abs(additive2[4] - 5.25) < EPS


def test_add_curves():
c1 = Curve({1:1}, default_interpolation='linear')
Expand Down

0 comments on commit 63d02a5

Please sign in to comment.