expectedCursorPositions and cursors are equal but it shows assertion fail


Did you try to run the tests from the test file,does it say that this test is failing?

yes it shows that one test is failing.

Alright it might be failing due to timeout(Your code not being optimised enough),why don’t you debug that particular test in testfile and check which line its failing at and also whether your code is fulfilling the timeout criteria or not.

check this one.it just takes 583ms and output are both identical. still it shows same error.


Refer to this -

Closing this topic as your issue is resolved by the mentor. If it is still not resolved, Kindly un-mark the accepted solution or create a new topic and post this question as a reference link in the description of the new topic.