Error: Diff is 667 characters long

Tell us what’s happening:
My function is working correctly but when i test it fails and it says: “Diff is 667 characters long. Set self.maxDiff to None to see it.”
But when i test it myself it shows that both, my function and the expected outcome are equal.
I’ve googled it but i couldn’t find a way to solve this.
Does anyone know the problem?
Thanks for your time.


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36 OPR/77.0.4054.298

Challenge: Budget App

Link to the challenge:

Issue here can be tricky to notice.

One way to see what’s wrong can be the following. Duplicate in file the whole example - creating categories, making some operations and then printing out chart. Make it so examples are run one after the another. As categories are created from the scratch in the same way and performed operations are the same, then both printed out charts also should be the same. But are they? Consider what might be happening here.

1 Like

Thank you!
I just did what you told me and now it’s working, i don’t know what was happening before.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.