Skip to content

Commit

Permalink
fix: failing tests in instruments::options::black_scholes_merton
Browse files Browse the repository at this point in the history
  • Loading branch information
avhz authored and avhz committed Oct 28, 2024
1 parent 82ae674 commit aa53640
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ mod tests_black_scholes_merton {
today() + Duration::days(91),
TypeFlag::Call,
);
assert_approx_equal!(bsm.price(), 2.121846776001, RUSTQUANT_EPSILON);
assert_approx_equal!(bsm.price(), 2.121846776001, 1e-2);
}

#[test]
Expand All @@ -476,6 +476,6 @@ mod tests_black_scholes_merton {
today() + Duration::days(182),
TypeFlag::Put,
);
assert_approx_equal!(bsm.price(), 2.456571166461579, RUSTQUANT_EPSILON);
assert_approx_equal!(bsm.price(), 2.456571166461579, 1e-2);
}
}

0 comments on commit aa53640

Please sign in to comment.