Skip to content

Commit

Permalink
actually test dividend options
Browse files Browse the repository at this point in the history
  • Loading branch information
thrasibule committed Nov 21, 2023
1 parent 00dbaef commit a5953ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_vanilla_option.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def test_dividend_american_option(self):
american_option.set_pricing_engine(engine)

#Note slightly different value using CrankNicolson
self.assertAlmostEqual(4.485920, american_option.net_present_value, 6)
self.assertAlmostEqual(5.050098, american_option.net_present_value, 6)

def test_dividend_american_option_implied_volatility(self):

Expand Down

0 comments on commit a5953ec

Please sign in to comment.