the expected value according to the unit test testCalculateAnnualizedReturn() is 0.0322 but in error it is showing 0.1
AssertionFailedError: expected: <0.1> but was: <0.0322>
the expected value according to the unit test testCalculateAnnualizedReturn() is 0.0322 but in error it is showing 0.1
AssertionFailedError: expected: <0.1> but was: <0.0322>
yes expected value is 0.0322 but you are getting somehow 0.1
check variable value while debugging ,you will found solution
Hi @piyush27
Apart from the above mentioned solution, did you check if you are forming the object correctly?
It might be possible that you are assigning the wrong values in the constructor.