Skip to content

Commit

Permalink
fixed bond test digits
Browse files Browse the repository at this point in the history
  • Loading branch information
bbcho committed Oct 1, 2023
1 parent 750edb0 commit f38ca88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest/test_risktools.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def test_ir_df_us():
def test_bond():

bo = rt.bond(ytm=0.05, c=0.05, T=1, m=2, output="price")
assert bo == 100, "bond Test 1 failed"
assert round(bo,4) == 100.0, "bond Test 1 failed"

# second test
bo = rt.bond(ytm=0.05, c=0.05, T=1, m=2, output="df")
Expand Down

0 comments on commit f38ca88

Please sign in to comment.