educative.io

Tests failed even when console showing right results

Tests are shown as fail even when console o/p is showing expected right results !

Expected output was
Result Input Expected Output Actual Output Reason
maxMin([12,23,34,45,56,67,78], 7) [78, 12, 67, 23, 56, 34, 45] Incorrect Output
maxMin([-22, -11,1,22, 33, 43,55], 7) [55, -22, 43, -11, 33, 1, 22] Incorrect Output

Console o/p was

Output

0.75s

[78, 12, 67, 23, 56, 34, 45] [55, -22, 43, -11, 33, 1, 22]


Course: https://www.educative.io/collection/5642554087309312/5646276079124480
Lesson: https://www.educative.io/collection/page/5642554087309312/5646276079124480/5659696845291520

Hello @Chetan_Deshmukh

Yes, you are right. There was an error in the code editor. We have promptly rectified the issue in the updated course.
Thank you for bringing this to our attention.

Happy learning

2 Likes