pazzo83 / QuantLib.jl

Quantlib implementation in pure Julia
Other
137 stars 42 forks source link

test error at test/swaptions.jl:93 #21

Open reumle opened 2 years ago

reumle commented 2 years ago

Hi, I have just downloaded the package and run test in a clean environment. All tests pass but the last one. I am on Julia 1.6.1.

If I replay the swaptions.jl file , I get this error

julia> QuantLib.Math.is_close(npv(bermudanSwaption), 14.11010300956427)
false

due to

npv(bermudanSwaption)
14.110397004348162

Where do you think is the problem? with the npv(bermudanSwaption) code , or with the test constant?