Added one more test

This commit is contained in:
Gourav Kumar 2022-02-24 23:34:39 +05:30
parent 50c423611d
commit dfd718e106

View File

@ -204,3 +204,5 @@ class TestFincalBasic:
assert round(returns, 4) == 0.6 assert round(returns, 4) == 0.6
returns = ts.calculate_returns("2020-04-01", compounding=True, interval_type='days', interval_value=90) returns = ts.calculate_returns("2020-04-01", compounding=True, interval_type='days', interval_value=90)
assert round(returns, 4) == 5.727 assert round(returns, 4) == 5.727
returns = ts.calculate_returns("2020-04-10", compounding=True, interval_type='days', interval_value=90)
assert round(returns, 4) == 5.727