File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ def test_next_value():
4040 next_tendency = LinearTendency (user_duration = 1 , user_from = 11 , user_rate = 5 )
4141 tendency = SmoothTendency (user_start = 0 , user_duration = 1 , user_from = 10 )
4242 tendency .set_next_tendency (next_tendency )
43+ next_tendency .set_previous_tendency (tendency )
4344 assert tendency .from_ == 10
4445 assert tendency .to == 11
4546 assert tendency .start_derivative == 0.0
@@ -56,11 +57,13 @@ def test_prev_and_next_value():
5657 next_tendency = LinearTendency (user_duration = 1 , user_from = 11 , user_rate = 5 )
5758 tendency = SmoothTendency (user_duration = 1 )
5859 tendency .set_next_tendency (next_tendency )
60+ prev_tendency .set_next_tendency (tendency )
5961 tendency .set_previous_tendency (prev_tendency )
62+ next_tendency .set_previous_tendency (tendency )
6063 assert tendency .from_ == 13
6164 assert tendency .to == 11
62- assert tendency .derivative_start == 3
63- assert tendency .derivative_end == 5
65+ assert tendency .start_derivative == 3
66+ assert tendency .end_derivative == 5
6467 assert tendency .prev_tendency == prev_tendency
6568 assert tendency .next_tendency == next_tendency
6669
You can’t perform that action at this time.
0 commit comments