mainCalculateAnnualReturn() Assertion Error

All test cases except this one from workspace have passed. I have used the debugger to check values for the list and the error is less than the delta given in test. The sorted order for list is also correct.
Capture
I have uploaded a pic of the return list from debugger.
I have already taken correct sell price and buy prices also.

Make sure test file is not altered while development.


This is the test function pls reply if it’s altered in any way.

It fails in the first assertion itself for some weird reason.

But you were telling the tests have passed locally ?

Sorry my mistake corrected it.

@hardikm It seems that the issue is resolved, as you have moved onto next module.

And the possible reason for your error would be

  • Calculation mistake of annualized returns
  • Passing of wrong parameters
  • Not following the TODO’s properly

Please refer to the following FAQ

I’m closing this topic due to no response from anyone since last 12 hours. If your query is resolved you can mark any reply as a solution. If you still have the query, please create a new topic paste the link of this topic in the description.