Describe your issue
I wanted to report a potential issue I encountered while using the CodeChef IDE for a beginner-level problem. The task was to check whether the length of the string "CodeChef" is less than or equal to 5 or greater than 5, and then print:
"Long String"if the length is greater than 5"Short String"if the length is less than or equal to 5
I initially solved the problem correctly by implementing the logic. However, out of curiosity, I tested the following code:
console.log(“Long String”);
Surprisingly, the IDE accepted this as a correct solution, even though it doesn’t implement the required logic—it simply prints one of the expected outputs unconditionally.
This could allow users to bypass the actual logic implementation and just print hardcoded expected results to pass the test cases. It might indicate a limitation in the test cases or output validation mechanism.
I thought this might be helpful to look into for improving the robustness of the platform.
Thank you for your time and the great work you’re doing in making programming accessible and fun!
