finmath / finmath-lib

Mathematical Finance Library: Algorithms and methodologies related to mathematical finance.
Apache License 2.0
488 stars 168 forks source link

Added tests for net.finmath.stochastic.Scalar #65

Closed freddytuxworth closed 5 years ago

freddytuxworth commented 5 years ago

What is this PR for?

I analysed this codebase and found some gaps in coverage. I have written a few tests for the stochastic Scalar class, with the help of Diffblue Cover.

What type of PR is it?

Improvement

Todos

N/A

What is the related issue?

N/A

Questions:

Does the licenses files need update? NO

Are there breaking changes for older versions? NO

Does the change require additional documentation? NO

Hopefully these tests should help you detect regressions caused by future code changes. Please let me know if you'd be interested in having more tests written for other classes within this project, I would be happy to help.